summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-25 23:45:36 +0000
committerrubidium <rubidium@openttd.org>2007-05-25 23:45:36 +0000
commitafaa6062cbf4b935da750d6240ac9d0d1528158a (patch)
tree658cd3cdf7d450f27e360c54d773012f8027c044 /src
parent8cd950e06ae95f7a92ec1d2f2743a295517c8fa2 (diff)
downloadopenttd-afaa6062cbf4b935da750d6240ac9d0d1528158a.tar.xz
(svn r9927) -Fix: assert triggered when letting a tram run into the wrong side of a depot.
Diffstat (limited to 'src')
-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 d399264cf..00cba917e 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1402,7 +1402,7 @@ again:
case TRACKDIR_RVREV_SW: needed = ROAD_NE; break;
case TRACKDIR_RVREV_NW: needed = ROAD_SE; break;
}
- if (!IsTileType(tile, MP_STREET) || (needed & GetRoadBits(tile, ROADTYPE_TRAM)) == ROAD_NONE) {
+ if (!IsTileType(tile, MP_STREET) || GetRoadTileType(tile) != ROAD_TILE_NORMAL || (needed & GetRoadBits(tile, ROADTYPE_TRAM)) == ROAD_NONE) {
/* The tram cannot turn here */
v->cur_speed = 0;
return;