mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r24302) -Fix: [Script] ScriptTown::GetGrowthRate() returned wrong values after usage of SetGrowthRate().
This commit is contained in:
parent
e9ac7a40df
commit
543540def8
@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
const Town *t = ::Town::Get(town_id);
|
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)
|
/* static */ int32 ScriptTown::GetDistanceManhattanToTile(TownID town_id, TileIndex tile)
|
||||||
|
Loading…
Reference in New Issue
Block a user