1
0
Fork 0

(svn r24302) -Fix: [Script] ScriptTown::GetGrowthRate() returned wrong values after usage of SetGrowthRate().

release/1.3
frosch 2012-05-30 14:54:44 +00:00
parent e9ac7a40df
commit 543540def8
1 changed files with 1 additions and 1 deletions

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)