(svn r3190) Turn some loops into canonical for loop form

This commit is contained in:
tron
2005-11-15 11:46:49 +00:00
parent 66d44766a7
commit 3bf8d2ccbb
3 changed files with 10 additions and 14 deletions

View File

@@ -1765,8 +1765,7 @@ static void AiStateBuildDefaultRailBlocks(Player *p)
}
// do the following 8 times
i = 8;
do {
for (i = 0; i < 8; i++) {
// check if we can build the default track
aib = &p->ai.src;
j = p->ai.num_build_rec;
@@ -1808,7 +1807,7 @@ static void AiStateBuildDefaultRailBlocks(Player *p)
assert(r != CMD_ERROR);
}
} while (++aib,--j);
} while (--i);
}
// check if we're done with all of them
aib = &p->ai.src;