summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-31 18:11:39 +0000
committerrubidium <rubidium@openttd.org>2007-05-31 18:11:39 +0000
commitb2cd8f363114892442061ada1329223201d2b3ea (patch)
treec297ad8740db39610265f5ed600dd5210123687a
parent59c51f9fcef0fdce968613cb55721867e301cf01 (diff)
downloadopenttd-b2cd8f363114892442061ada1329223201d2b3ea.tar.xz
(svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge.
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index a4e503a1b..8e912ad08 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1417,7 +1417,7 @@ again:
v->cur_speed = 0;
return;
}
- } else if (GetRoadTileType(v->tile) == ROAD_TILE_NORMAL && GetDisallowedRoadDirections(v->tile) != DRD_NONE) {
+ } else if (IsTileType(tile, MP_STREET) && GetRoadTileType(v->tile) == ROAD_TILE_NORMAL && GetDisallowedRoadDirections(v->tile) != DRD_NONE) {
v->cur_speed = 0;
return;
} else {