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 | b3aa28e879c757e423744f86ed39d35f1964d6d4 (patch) | |
tree | c297ad8740db39610265f5ed600dd5210123687a /src | |
parent | f7f289667d8f8b705b4ea695615f892dbf08a5dd (diff) | |
download | openttd-b3aa28e879c757e423744f86ed39d35f1964d6d4.tar.xz |
(svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge.
Diffstat (limited to 'src')
-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 { |