# HG changeset patch # User tron # Date 1121202810 0 # Node ID a922d528e2f47a9a19f73a2c7bf4d747ac41bff5 # Parent 8ae4fcc273ef18efb76c371479c5d1ffd506376e (svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde) diff -r 8ae4fcc273ef -r a922d528e2f4 pathfind.c --- a/pathfind.c Tue Jul 12 20:41:17 2005 +0000 +++ b/pathfind.c Tue Jul 12 21:13:30 2005 +0000 @@ -429,15 +429,6 @@ 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 @@ } // 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,