summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-13 10:43:50 +0000
committerrubidium <rubidium@openttd.org>2007-02-13 10:43:50 +0000
commitdba93c7038cbf136c8e0c0ae658d0cbcf6a46dc2 (patch)
treea9a84e957eb183f449700ec118d1ad160960c9be /src
parenteb5648f38206e98b03aa3ca5783faafdde390884 (diff)
downloadopenttd-dba93c7038cbf136c8e0c0ae658d0cbcf6a46dc2.tar.xz
(svn r8700) -Fix (8698): replaced a magic number with the wrong enum :(
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 3020caa8e..5dffecee4 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -3022,7 +3022,7 @@ static void TrainController(Vehicle *v, bool update_image)
if (IsFrontEngine(v) && !TrainCheckIfLineEnds(v)) return;
r = VehicleEnterTile(v, gp.new_tile, gp.x, gp.y);
- if (HASBIT(r, VETS_ENTERED_WORMHOLE)) {
+ if (HASBIT(r, VETS_CANNOT_ENTER)) {
goto invalid_rail;
}
if (HASBIT(r, VETS_ENTERED_STATION)) {