diff options
author | rubidium <rubidium@openttd.org> | 2006-08-22 14:38:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-08-22 14:38:37 +0000 |
commit | 480af9c9171badb7db906d2cc05856f4c2d87b73 (patch) | |
tree | 2a3621a92a3d30384ea51e0898d08f035a559915 /pathfind.c | |
parent | 5f4dbbd52264b986efc248a6ccb02dbde4ca6c0e (diff) | |
download | openttd-480af9c9171badb7db906d2cc05856f4c2d87b73.tar.xz |
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
Diffstat (limited to 'pathfind.c')
-rw-r--r-- | pathfind.c | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/pathfind.c b/pathfind.c index ae5f32ca6..9a001aac1 100644 --- a/pathfind.c +++ b/pathfind.c @@ -115,13 +115,15 @@ static const byte _bits_mask[4] = { }; static const byte _tpf_new_direction[14] = { - 0,1,0,1,2,1, 0,0, - 2,3,3,2,3,0, + 0, 1, 0, 1, 2, 1, + 0, 0, + 2, 3, 3, 2, 3, 0, }; static const byte _tpf_prev_direction[14] = { - 0,1,1,0,1,2, 0,0, - 2,3,2,3,0,3, + 0, 1, 1, 0, 1, 2, + 0, 0, + 2, 3, 2, 3, 0, 3, }; @@ -230,23 +232,23 @@ static uint SkipToEndOfTunnel(TrackPathFinder* tpf, TileIndex tile, DiagDirectio } const byte _ffb_64[128] = { -0,0,1,0,2,0,1,0, -3,0,1,0,2,0,1,0, -4,0,1,0,2,0,1,0, -3,0,1,0,2,0,1,0, -5,0,1,0,2,0,1,0, -3,0,1,0,2,0,1,0, -4,0,1,0,2,0,1,0, -3,0,1,0,2,0,1,0, - -0,0,0,2,0,4,4,6, -0,8,8,10,8,12,12,14, -0,16,16,18,16,20,20,22, -16,24,24,26,24,28,28,30, -0,32,32,34,32,36,36,38, -32,40,40,42,40,44,44,46, -32,48,48,50,48,52,52,54, -48,56,56,58,56,60,60,62, + 0, 0, 1, 0, 2, 0, 1, 0, + 3, 0, 1, 0, 2, 0, 1, 0, + 4, 0, 1, 0, 2, 0, 1, 0, + 3, 0, 1, 0, 2, 0, 1, 0, + 5, 0, 1, 0, 2, 0, 1, 0, + 3, 0, 1, 0, 2, 0, 1, 0, + 4, 0, 1, 0, 2, 0, 1, 0, + 3, 0, 1, 0, 2, 0, 1, 0, + + 0, 0, 0, 2, 0, 4, 4, 6, + 0, 8, 8, 10, 8, 12, 12, 14, + 0, 16, 16, 18, 16, 20, 20, 22, +16, 24, 24, 26, 24, 28, 28, 30, + 0, 32, 32, 34, 32, 36, 36, 38, +32, 40, 40, 42, 40, 44, 44, 46, +32, 48, 48, 50, 48, 52, 52, 54, +48, 56, 56, 58, 56, 60, 60, 62, }; static void TPFMode1(TrackPathFinder* tpf, TileIndex tile, DiagDirection direction) @@ -414,12 +416,12 @@ typedef struct { } StackedItem; static const byte _new_track[6][4] = { -{0,0xff,8,0xff,}, -{0xff,1,0xff,9,}, -{0xff,2,10,0xff,}, -{3,0xff,0xff,11,}, -{12,4,0xff,0xff,}, -{0xff,0xff,5,13,}, +{0, 0xff, 8, 0xff,}, +{0xff, 1, 0xff, 9,}, +{0xff, 2, 10, 0xff,}, +{3, 0xff, 0xff, 11,}, +{12, 4, 0xff, 0xff,}, +{0xff, 0xff, 5, 13,}, }; typedef struct HashLink { @@ -659,8 +661,8 @@ static uint DistanceMoo(TileIndex t0, TileIndex t1) // is currently limited to 16384 static const byte _length_of_track[16] = { - DIAG_FACTOR,DIAG_FACTOR,STR_FACTOR,STR_FACTOR,STR_FACTOR,STR_FACTOR,0,0, - DIAG_FACTOR,DIAG_FACTOR,STR_FACTOR,STR_FACTOR,STR_FACTOR,STR_FACTOR,0,0 + DIAG_FACTOR, DIAG_FACTOR, STR_FACTOR, STR_FACTOR, STR_FACTOR, STR_FACTOR, 0, 0, + DIAG_FACTOR, DIAG_FACTOR, STR_FACTOR, STR_FACTOR, STR_FACTOR, STR_FACTOR, 0, 0 }; // new more optimized pathfinder for trains... |