diff options
author | tron <tron@openttd.org> | 2005-01-05 13:32:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-05 13:32:03 +0000 |
commit | 67161506ad98a7636d3c9f141b5595481d079e93 (patch) | |
tree | b9a5829b3d37c53a2de48d1ef28960f41804f4dc /ship_cmd.c | |
parent | 2543158c8e0d105148bc38522fba43aa3428d76a (diff) | |
download | openttd-67161506ad98a7636d3c9f141b5595481d079e93.tar.xz |
(svn r1386) Move TileIndexDiff to map.h
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index 9d7a8553e..a7da76f95 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -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; |