diff options
author | tron <tron@openttd.org> | 2005-07-12 21:13:30 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-12 21:13:30 +0000 |
commit | 9c94a0ed6fb5927bfa5fb657dda626388855e145 (patch) | |
tree | 9687ee1bd5d3b9432e24366c51603bf75c9e2f50 | |
parent | ebe3b89b981dc0cd5256f326d720dfe234c52e95 (diff) | |
download | openttd-9c94a0ed6fb5927bfa5fb657dda626388855e145.tar.xz |
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
-rw-r--r-- | pathfind.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pathfind.c b/pathfind.c index 8c10fc581..48c53ce67 100644 --- a/pathfind.c +++ b/pathfind.c @@ -429,15 +429,6 @@ typedef struct { byte first_track; } StackedItem; -static const byte _new_dir[6][4] = { -{0,0xff,2,0xff,}, -{0xff,1,0xff,3,}, -{0xff,0,3,0xff,}, -{1,0xff,0xff,2,}, -{3,2,0xff,0xff,}, -{0xff,0xff,1,0,}, -}; - static const byte _new_track[6][4] = { {0,0xff,8,0xff,}, {0xff,1,0xff,9,}, @@ -698,7 +689,7 @@ restart: } // regular rail tile, determine the tracks that are actually reachable. - bits &= _bits_mask[direction]; + bits = _map5[tile] & _bits_mask[direction]; if (bits == 0) goto stop_search; // no tracks there? stop searching. // intersection? then we need to branch the search space, |