Skip to content

Commit

Permalink
Fix wrong numbers of turns displayed after buying
Browse files Browse the repository at this point in the history
The client's accounting of the shield stock didn't always take the bought
shields into account.

Closes #1848.
  • Loading branch information
lmoureaux committed Dec 27, 2023
1 parent 2811e38 commit cb9df28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/city.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1834,6 +1834,8 @@ int city_change_production_penalty(const struct city *pcity,
&& target->value.utype != pcity->changed_from.value.utype)))) {
unpenalized_shields -= pcity->bought_shields;
penalized_shields += pcity->bought_shields;
} else {
unpenalized_shields += pcity->bought_shields;
}

/* Do not put penalty on these. It shouldn't matter whether you disband
Expand Down

0 comments on commit cb9df28

Please sign in to comment.