View Single Post
  #26  
Old August 3rd, 2008, 07:06 PM
sector24's Avatar
sector24 sector24 is offline
Second Lieutenant
 
Join Date: Jul 2007
Location: Durham, NC
Posts: 509
Thanks: 84
Thanked 44 Times in 14 Posts
sector24 is on a distinguished road
Default Re: Population Resets to Zero

There's a really tiny chance that the variable used to keep track of the population is two unsigned chars. "Unsigned" meaning it goes from 0-512 instead of -256 to 256, then the value multiply by some constant to get the actual value displayed in the game. If that was the case then the population would overflow to 0 at 512, but a char is not the optimal data type to store this kind of value so it's not likely.
Reply With Quote