diff options
author | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
commit | ee15e3de13643b2d09abcc5424bf8e2d916cff75 (patch) | |
tree | 385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /town_cmd.c | |
parent | 59e885c2bff5b1af6d7f5473106e9aa1f562abfd (diff) | |
download | openttd-ee15e3de13643b2d09abcc5424bf8e2d916cff75.tar.xz |
(svn r3172) static, const
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c index 3894164b2..e49cf4eb5 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -201,7 +201,7 @@ static void UpdateTownRadius(Town *t); static bool IsCloseToTown(TileIndex tile, uint dist) { - Town *t; + const Town* t; FOR_ALL_TOWNS(t) { if (t->xy != 0 && DistanceManhattan(tile, t->xy) < dist) @@ -245,7 +245,8 @@ static void ChangePopulation(Town *t, int mod) uint32 GetWorldPopulation(void) { uint32 pop; - Town *t; + const Town* t; + pop = 0; FOR_ALL_TOWNS(t) { pop += t->population; |