(svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops.

This commit is contained in:
2007-03-21 13:19:01 +00:00
parent a9651a8b8f
commit d7f56f1550
13 changed files with 29 additions and 35 deletions

View File

@@ -1587,9 +1587,7 @@ static void TownActionBribe(Town* t)
// set all close by station ratings to 0
FOR_ALL_STATIONS(st) {
if (st->town == t && st->owner == _current_player) {
uint i;
for (i = 0; i != NUM_CARGO; i++) st->goods[i].rating = 0;
for (CargoID i = 0; i < NUM_CARGO; i++) st->goods[i].rating = 0;
}
}