summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-13 10:26:53 +0000
committerrubidium <rubidium@openttd.org>2007-02-13 10:26:53 +0000
commiteb5648f38206e98b03aa3ca5783faafdde390884 (patch)
treea8d30d13565c6ebb15b7a0857e33c317d033e666 /src/ship_cmd.cpp
parent3f74dbe5c075610637ec10a0b077a0a8710fd610 (diff)
downloadopenttd-eb5648f38206e98b03aa3ca5783faafdde390884.tar.xz
(svn r8698) -Codechange: enumify the returns of VehicleEnterTile
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 82408ad23..6b73dade8 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -700,7 +700,7 @@ static void ShipController(Vehicle *v)
} else {
/* isnot inside depot */
r = VehicleEnterTile(v, gp.new_tile, gp.x, gp.y);
- if (r & 0x8) goto reverse_direction;
+ if (HASBIT(r, VETS_CANNOT_ENTER)) goto reverse_direction;
/* A leave station order only needs one tick to get processed, so we can
* always skip ahead. */
@@ -780,9 +780,9 @@ static void ShipController(Vehicle *v)
/* Call the landscape function and tell it that the vehicle entered the tile */
r = VehicleEnterTile(v, gp.new_tile, gp.x, gp.y);
- if (r&0x8) goto reverse_direction;
+ if (HASBIT(r, VETS_CANNOT_ENTER)) goto reverse_direction;
- if (!(r&0x4)) {
+ if (!HASBIT(r, VETS_ENTERED_WORMHOLE)) {
v->tile = gp.new_tile;
v->u.ship.state = TrackToTrackBits(track);
}