summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-02 21:07:03 +0000
committerrubidium <rubidium@openttd.org>2007-06-02 21:07:03 +0000
commita752c73469e2a5e1d3f7b5b30b2db494e4bdbae5 (patch)
treeba8407954f3f9e9093f3821da5e351808d77cc5a
parent43482d22d0da046948d2942fc18d4660a69de007 (diff)
downloadopenttd-a752c73469e2a5e1d3f7b5b30b2db494e4bdbae5.tar.xz
(svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks.
-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 6f9a7bbc2..1e66c3583 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1412,7 +1412,7 @@ again:
case TRACKDIR_RVREV_SW: needed = ROAD_NE; break;
case TRACKDIR_RVREV_NW: needed = ROAD_SE; break;
}
- if (!IsTileType(tile, MP_STREET) || GetRoadTileType(tile) != ROAD_TILE_NORMAL || (needed & GetRoadBits(tile, ROADTYPE_TRAM)) == ROAD_NONE) {
+ if (!IsTileType(tile, MP_STREET) || GetRoadTileType(tile) != ROAD_TILE_NORMAL || HasRoadWorks(tile) || (needed & GetRoadBits(tile, ROADTYPE_TRAM)) == ROAD_NONE) {
/* The tram cannot turn here */
v->cur_speed = 0;
return;