Jasirim

Jasirim

Joined Member # 2612193
0 Posts 1 Replies 30 Reputation

Frogboy, if I may be so bold, I believe your code is erroneous and inconsistent. Here is my revision: *** BEGIN CODE if(lPopulationChange > 100) lPopulationChange = 100; if(lMorale >= 100) // bonus will apply even if some unexpected circumstance pushes Morale over 100% lPopulationChange *=2; elseif(lMorale >= 75) // bonus applies starting with Morale of 75% lPopulationChange *=1.25; fPopulationBonus = 1.0 + ((float) pCiv->GetAbility(AB

63 Replies 32,474 Views