pathfind.c
changeset 2952 6a26eeda9679
parent 2782 b8453c2cb0ed
child 3017 915fae59d5e0
--- a/pathfind.c	Wed Feb 01 06:32:03 2006 +0000
+++ b/pathfind.c	Wed Feb 01 07:36:15 2006 +0000
@@ -185,7 +185,7 @@
 
 		// Change direction 4 times only
 		if ((byte)i != tpf->rd.pft_var6) {
-			if(++tpf->rd.depth > 4) {
+			if (++tpf->rd.depth > 4) {
 				tpf->rd = rd;
 				return;
 			}
@@ -222,7 +222,7 @@
 
 	z = GetSlopeZ(x+8, y+8);
 
-	for(;;) {
+	for (;;) {
 		flotr.length++;
 
 		x += _get_tunlen_inc[direction];
@@ -609,7 +609,7 @@
 
 	// else it's a linked list of many tiles
 	offs = tpf->hash_tile[hash];
-	for(;;) {
+	for (;;) {
 		link = NTP_GET_LINK_PTR(tpf, offs);
 		if (tile == link->tile && (uint)(link->typelength & 0x3) == dir) {
 			assert( (uint)(link->typelength >> 2) <= length);
@@ -690,7 +690,7 @@
 	si.first_track = 0xFF;
 	goto start_at;
 
-	for(;;) {
+	for (;;) {
 		// Get the next item to search from from the priority queue
 		do {
 			if (tpf->nstack == 0)
@@ -734,7 +734,7 @@
 		// This is a special loop used to go through
 		// a rail net and find the first intersection
 		tile_org = tile;
-		for(;;) {
+		for (;;) {
 			assert(direction <= 3);
 			tile += TileOffsByDir(direction);