mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-19 00:59:41 +00:00
(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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user