(svn r8700) -Fix (8698): replaced a magic number with the wrong enum :(

This commit is contained in:
rubidium 2007-02-13 10:43:50 +00:00
parent a419f4aeda
commit af3001b988
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {