(svn r24305) [1.2] -Backport from trunk:

- Fix: [Script] ScriptTown::GetGrowthRate() returned wrong values after usage of SetGrowthRate() (r24302)
[1.2] -Update: documentation
This commit is contained in:
rubidium
2012-05-31 20:48:17 +00:00
parent 9a04ccdcab
commit 4a031c91db
7 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -152,7 +152,7 @@
const Town *t = ::Town::Get(town_id);
return (t->growth_rate * TOWN_GROWTH_TICKS + DAY_TICKS) / DAY_TICKS;
return ((t->growth_rate & ~TOWN_GROW_RATE_CUSTOM) * TOWN_GROWTH_TICKS + DAY_TICKS) / DAY_TICKS;
}
/* static */ int32 ScriptTown::GetDistanceManhattanToTile(TownID town_id, TileIndex tile)