diff options
author | rubidium <rubidium@openttd.org> | 2007-05-31 18:11:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-31 18:11:39 +0000 |
commit | b2cd8f363114892442061ada1329223201d2b3ea (patch) | |
tree | c297ad8740db39610265f5ed600dd5210123687a | |
parent | 59c51f9fcef0fdce968613cb55721867e301cf01 (diff) | |
download | openttd-b2cd8f363114892442061ada1329223201d2b3ea.tar.xz |
(svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge.
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
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 { |