From 8add7c666455a8a4edd9e02ca5a33f78a25e8f2c Mon Sep 17 00:00:00 2001 From: Hop311 Date: Fri, 15 Sep 2023 21:55:00 +0100 Subject: First go at Modifiers --- src/openvic-simulation/map/Map.cpp | 3 --- src/openvic-simulation/map/Province.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/openvic-simulation/map') diff --git a/src/openvic-simulation/map/Map.cpp b/src/openvic-simulation/map/Map.cpp index fa11f86..e8178e9 100644 --- a/src/openvic-simulation/map/Map.cpp +++ b/src/openvic-simulation/map/Map.cpp @@ -512,9 +512,6 @@ bool Map::load_province_definitions(std::vector const& lines) { return ret; } -/* TODO - add support for non-state province groupings used by some mods - * (currently they trigger "province already in other region" errors). - */ bool Map::load_region_file(ast::NodeCPtr root) { const bool ret = expect_dictionary_reserve_length( regions, diff --git a/src/openvic-simulation/map/Province.cpp b/src/openvic-simulation/map/Province.cpp index b4a80b5..49a9bfc 100644 --- a/src/openvic-simulation/map/Province.cpp +++ b/src/openvic-simulation/map/Province.cpp @@ -8,7 +8,7 @@ using namespace OpenVic; using namespace OpenVic::NodeTools; Province::Province(const std::string_view new_identifier, colour_t new_colour, index_t new_index) - : HasIdentifierAndColour { new_identifier, new_colour, false }, + : HasIdentifierAndColour { new_identifier, new_colour, false, false }, index { new_index }, buildings { "buildings", false } { assert(index != NULL_INDEX); -- cgit v1.2.3-56-ga3b1