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
commitaf3001b988b3e6e209f327dc944a5fc67da4f652 (patch)
treea9a84e957eb183f449700ec118d1ad160960c9be /src
parenta419f4aedadc526377d24e30bfd967e29255498e (diff)
downloadopenttd-af3001b988b3e6e209f327dc944a5fc67da4f652.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)) {