summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-05 12:34:55 +0000
committertron <tron@openttd.org>2006-03-05 12:34:55 +0000
commit586388c9f17a39b4d3a7e7706fe6b40191a922b4 (patch)
tree113bde0444e78799f198050654eba4d96e28702e /ship_cmd.c
parentf007ad282c60cc1b2529b44c3e0b4c1bdab3d685 (diff)
downloadopenttd-586388c9f17a39b4d3a7e7706fe6b40191a922b4.tar.xz
(svn r3767) Move all direction related enums and functions to a separate header
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index 31e195dd6..d12d36ae7 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -537,7 +537,7 @@ static int ChooseShipTrack(Vehicle *v, TileIndex tile, int enterdir, uint tracks
if (_patches.new_pathfinding_all) {
NPFFindStationOrTileData fstd;
NPFFoundTargetData ftd;
- TileIndex src_tile = TILE_ADD(tile, TileOffsByDir(ReverseDiagdir(enterdir)));
+ TileIndex src_tile = TILE_ADD(tile, TileOffsByDir(ReverseDiagDir(enterdir)));
byte trackdir = GetVehicleTrackdir(v);
assert (trackdir != 0xFF); /* Check that we are not in a depot */
@@ -564,9 +564,9 @@ static int ChooseShipTrack(Vehicle *v, TileIndex tile, int enterdir, uint tracks
tot_dist = (uint)-1;
/* Let's find out how far it would be if we would reverse first */
- b = GetTileShipTrackStatus(tile2) & _ship_sometracks[ReverseDiagdir(enterdir)] & v->u.ship.state;
+ b = GetTileShipTrackStatus(tile2) & _ship_sometracks[ReverseDiagDir(enterdir)] & v->u.ship.state;
if (b != 0) {
- dist = FindShipTrack(v, tile2, ReverseDiagdir(enterdir), b, tile, &track);
+ dist = FindShipTrack(v, tile2, ReverseDiagDir(enterdir), b, tile, &track);
if (dist != (uint)-1)
tot_dist = dist + 1;
}