Skip to content

Commit

Permalink
remove pointless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
schombert committed Jun 19, 2024
1 parent 9bd26cb commit 57f18e3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/economy/economy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,6 @@ void initialize_artisan_distribution(sys::state& state) {
auto const csize = state.world.commodity_size();

for(auto n : state.world.in_nation) {
//float total = 0.0f;
for(uint32_t i = 1; i < csize; ++i) {
dcon::commodity_id cid{ dcon::commodity_id::value_base_t(i) };
auto kf = state.world.commodity_get_key_factory(cid);

if(state.world.commodity_get_artisan_output_amount(cid) > 0.0f && (state.world.commodity_get_is_available_from_start(cid) || (kf && state.world.nation_get_active_building(n, kf)))) {

//total += 1.0f;
}
}
//assert(total > 0.0f);
for(uint32_t i = 1; i < csize; ++i) {
dcon::commodity_id cid{ dcon::commodity_id::value_base_t(i) };
auto kf = state.world.commodity_get_key_factory(cid);
Expand Down

0 comments on commit 57f18e3

Please sign in to comment.