(svn r1386) Move TileIndexDiff to map.h

Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
This commit is contained in:
tron
2005-01-05 13:32:03 +00:00
parent 0a37e6202b
commit e4cf2ba1b3
20 changed files with 87 additions and 83 deletions

View File

@@ -546,7 +546,7 @@ static int ChooseShipTrack(Vehicle *v, uint tile, int dir, uint tracks)
uint tile2;
assert(dir>=0 && dir<=3);
tile2 = TILE_ADD(tile, -_tileoffs_by_dir[dir]);
tile2 = TILE_ADD(tile, -TileOffsByDir(dir));
dir ^= 2;
tot_dist = (uint)-1;
b = GetTileShipTrackStatus(tile2) & _ship_sometracks[dir] & v->u.ship.state;