File diff r19386:f2d13858ced4 → r19387:3bdce61e5d37
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)