Problem: With SVN 4541, planet troops and defence meters show an increase of 1 for the next turn, but never actually increase, but stay at 0.
The problem seems to be a typo in method Planet::PopGrowthProductionResearchPhase() in Planet.cpp:
Code:
GetMeter(METER_SHIELD)->SetCurrent(Planet::NextTurnCurrentMeterValue(METER_SHIELD));
GetMeter(METER_DEFENSE)->SetCurrent(Planet::NextTurnCurrentMeterValue(METER_SHIELD));
GetMeter(METER_TROOPS)->SetCurrent(Planet::NextTurnCurrentMeterValue(METER_SHIELD));
I'm fairly sure this shoud be:
Code:
GetMeter(METER_SHIELD)->SetCurrent(Planet::NextTurnCurrentMeterValue(METER_SHIELD));
GetMeter(METER_DEFENSE)->SetCurrent(Planet::NextTurnCurrentMeterValue(METER_DEFENSE));
GetMeter(METER_TROOPS)->SetCurrent(Planet::NextTurnCurrentMeterValue(METER_TROOPS));
Build SVN 4541 with this patch applied, ran a test game, troop and defence meters were working as they should again.
Patch file attached.