Changeset - r19387:3bdce61e5d37
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-05-30 14:54:44
frosch@openttd.org
(svn r24302) -Fix: [Script] ScriptTown::GetGrowthRate() returned wrong values after usage of SetGrowthRate().
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_town.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)