marirosa -> RE: upgrading your army: how? (7/30/2005 5:50:18 AM)
|
I think i know what is happening. The key is quote:
mil+=PlayerDev[hPlayer]/2 As mil is an integer, if you divide an odd number, the result is truncated. For example, if you have a level 3 culture, the result of the function is 9, divided by 2 is 4.5, but as mil is integer, it only adds 4. This can explain the inacuracies in my results and makes me wonder.... 3*SSB is exactly the same as SSB/50 + (SSB/2)/50 so it seems the call to quote:
Info_CountDevelopmentSquaresForPlayers(PlayerDev, TCity::Cultural_Dev);
mil+=PlayerDev[hPlayer]/2
do not reset the value of PlayerDev[hPlayer], so instead of counting the squares of culture, it ADDS the squares of culture to the squares of barracks.
|
|
|
|