diff options
Diffstat (limited to 'extension/src')
-rw-r--r-- | extension/src/openvic-extension/singletons/MapItemSingleton.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/singletons/MapItemSingleton.cpp b/extension/src/openvic-extension/singletons/MapItemSingleton.cpp index 57b5ccb..67af22e 100644 --- a/extension/src/openvic-extension/singletons/MapItemSingleton.cpp +++ b/extension/src/openvic-extension/singletons/MapItemSingleton.cpp @@ -133,9 +133,14 @@ PackedVector2Array MapItemSingleton::get_province_positions(){ PackedVector2Array billboard_pos = PackedVector2Array(); int prov_count = game_singleton->get_definition_manager().get_map_definition().get_province_definition_count(); + Logger::info("prov_count ", prov_count); + for(int i = 0; i < prov_count; i++){ ProvinceDefinition const* prov = game_singleton->get_definition_manager().get_map_definition().get_province_definition_by_index(i); billboard_pos.push_back(Vector2(prov->get_city_position().x,prov->get_city_position().y)); + if(i % 4){ + Logger::info("prov_x ", prov->get_city_position().x); + } } return billboard_pos; |