(svn r3172) static, const

This commit is contained in:
tron
2005-11-13 13:43:55 +00:00
parent d97f56b4e2
commit 81e5b16d71
31 changed files with 132 additions and 131 deletions

View File

@@ -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;