diff options
author | Hop311 <Hop3114@gmail.com> | 2024-09-10 20:14:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 20:14:49 +0200 |
commit | dc0b0ede2368b43ab6c91a5e24d76ec34e91cf46 (patch) | |
tree | 732102566650ae717c43db5c2381fb72ce8ed88c /extension/src/openvic-extension/singletons/PopulationMenu.cpp | |
parent | cfad2d9e2011a5b930efa14e07ce9caf25d9459a (diff) | |
parent | 6d4b8b087b62b5487d72cc6c2265b3e00afb9c8a (diff) |
Merge pull request #266 from OpenVicProject/ranking
Ranking + army topbar info
Diffstat (limited to 'extension/src/openvic-extension/singletons/PopulationMenu.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/PopulationMenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/src/openvic-extension/singletons/PopulationMenu.cpp b/extension/src/openvic-extension/singletons/PopulationMenu.cpp index 271068b..c96ef02 100644 --- a/extension/src/openvic-extension/singletons/PopulationMenu.cpp +++ b/extension/src/openvic-extension/singletons/PopulationMenu.cpp @@ -393,12 +393,12 @@ Error MenuSingleton::_population_menu_update_filtered_pops() { population_menu.distributions[0][&pop->get_type()] += pop->get_size(); population_menu.distributions[1][&pop->get_religion()] += pop->get_size(); population_menu.distributions[2] += - pop->get_ideologies() * static_cast<fixed_point_t>(static_cast<int32_t>(pop->get_size())); + pop->get_ideologies() * fixed_point_t::parse(pop->get_size()); population_menu.distributions[3][&pop->get_culture()] += pop->get_size(); population_menu.distributions[4] += - cast_map<HasIdentifierAndColour>(pop->get_issues() * static_cast<int32_t>(pop->get_size())); + cast_map<HasIdentifierAndColour>(pop->get_issues() * fixed_point_t::parse(pop->get_size())); population_menu.distributions[5] += - pop->get_votes() * static_cast<fixed_point_t>(static_cast<int32_t>(pop->get_size())); + pop->get_votes() * fixed_point_t::parse(pop->get_size()); } for (fixed_point_map_t<HasIdentifierAndColour const*>& distribution : population_menu.distributions) { |