aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Joel Machens <ajmach6@gmail.com>2023-10-03 23:32:13 +0200
committer Joel Machens <ajmach6@gmail.com>2023-10-03 23:32:13 +0200
commit88b29173f9ec49f6145b0d5bef678499f450d4d7 (patch)
tree0964c6cb728c4a48d633d4c5ae4092116e6768e6
parent470d8c45522543aa161b3b98c5e6991024c8a5af (diff)
Fix positions.txt Edge Cases
-rw-r--r--src/openvic-simulation/map/Province.cpp9
-rw-r--r--src/openvic-simulation/map/Province.hpp1
2 files changed, 7 insertions, 3 deletions
diff --git a/src/openvic-simulation/map/Province.cpp b/src/openvic-simulation/map/Province.cpp
index b0717b9..199e472 100644
--- a/src/openvic-simulation/map/Province.cpp
+++ b/src/openvic-simulation/map/Province.cpp
@@ -82,8 +82,13 @@ bool Province::load_positions(BuildingManager const& building_manager, ast::Node
},
"naval_base", ZERO_OR_ONE, [this](ast::NodeCPtr node) -> bool {
return expect_fixed_point(assign_variable_callback(positions.navalbase_rotation))(node);
- }
- )
+ },
+ "aeroplane_factory", ZERO_OR_ONE, [](ast::NodeCPtr _) -> bool { return true; } /* see below */
+ ),
+ /* the below are esoteric clausewitz leftovers that either have no impact or whose functionality is lost to time */
+ "spawn_railway_track", ZERO_OR_ONE, [](ast::NodeCPtr _) -> bool { return true; },
+ "railroad_visibility", ZERO_OR_ONE, [](ast::NodeCPtr _) -> bool { return true; },
+ "building_nudge", ZERO_OR_ONE, [](ast::NodeCPtr _) -> bool { return true; }
)(root);
}
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index a621182..31b5d4c 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -54,7 +54,6 @@ namespace OpenVic {
fixed_point_t railroad_rotation;
fvec2_t navalbase;
fixed_point_t navalbase_rotation;
- /* fvec2_t spawn_railway_track; treating as extraneous until proven need */
};