(svn r2021) Fix: Enlarge _cur_town_ctr from byte to uint32 so that all the towns are considered when growing them even for big maps, where much more than 256 towns are around; reported by Tomasz Dubiński <uboottd@hydra.polsl.gliwice.pl>. The savegame still saves just the lowest 8 bits but that doesn't hurt so much.
This commit is contained in:
@@ -442,7 +442,7 @@ void OnTick_Town(void)
|
||||
for (counter += GetTownPoolSize();
|
||||
counter >= TOWN_GROWTH_FREQUENCY;
|
||||
counter -= TOWN_GROWTH_FREQUENCY) {
|
||||
int i = _cur_town_ctr;
|
||||
uint32 i = _cur_town_ctr;
|
||||
Town *t;
|
||||
|
||||
if (++_cur_town_ctr >= GetTownPoolSize())
|
||||
|
Reference in New Issue
Block a user