(svn r12562) -Cleanup: variable scope in terraform_cmd.cpp

This commit is contained in:
smatz
2008-04-04 15:48:15 +00:00
parent 99b2536351
commit 0aeefe164d
2 changed files with 35 additions and 47 deletions

View File

@@ -2255,7 +2255,7 @@ static void UpdateTownGrowRate(Town *t)
int n = 0;
Station *st;
const Station *st;
FOR_ALL_STATIONS(st) {
if (DistanceSquare(st->xy, t->xy) <= t->radius[0]) {
if (st->time_since_load <= 20 || st->time_since_unload <= 20) {