Mercurial > hg > openttd
changeset 5992:e92506636021 draft
(svn r8700) -Fix (8698): replaced a magic number with the wrong enum :(
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 13 Feb 2007 10:43:50 +0000 |
parents | 1b793d99b5ba |
children | 2498be7c7e94 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3022,7 +3022,7 @@ 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)) {