From 3bf8d2ccbbf75533c3578bfebde1238b7293b3ad Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 15 Nov 2005 11:46:49 +0000 Subject: (svn r3190) Turn some loops into canonical for loop form --- ai/default/default.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ai') diff --git a/ai/default/default.c b/ai/default/default.c index 845428eeb..4f4283f1a 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -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; -- cgit v1.2.3-70-g09d2