diff options
author | tron <tron@openttd.org> | 2006-02-01 07:36:15 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-01 07:36:15 +0000 |
commit | 84fb96fe85e75b038b527471428189170021f8b7 (patch) | |
tree | a7d69d6390e8880d090f15560161694c3ce6126d /pathfind.c | |
parent | 22dc05faf2219f6e3803f9cbff92249823bb11eb (diff) | |
download | openttd-84fb96fe85e75b038b527471428189170021f8b7.tar.xz |
(svn r3511) More whitespace ([FS#46] by Rubidium)
Diffstat (limited to 'pathfind.c')
-rw-r--r-- | pathfind.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pathfind.c b/pathfind.c index 9552129bc..8107fc5ed 100644 --- a/pathfind.c +++ b/pathfind.c @@ -185,7 +185,7 @@ static void TPFMode2(TrackPathFinder *tpf, TileIndex tile, int direction) // 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 @@ FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, uint direction) z = GetSlopeZ(x+8, y+8); - for(;;) { + for (;;) { flotr.length++; x += _get_tunlen_inc[direction]; @@ -609,7 +609,7 @@ static bool NtpCheck(NewTrackPathFinder *tpf, TileIndex tile, uint dir, uint len // 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 @@ static void NTPEnum(NewTrackPathFinder *tpf, TileIndex tile, uint direction) 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 @@ start_at: // 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); |