summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-31 16:47:32 +0000
committerrubidium <rubidium@openttd.org>2007-05-31 16:47:32 +0000
commit59c51f9fcef0fdce968613cb55721867e301cf01 (patch)
treeaceebc5ebca0d077c9d7c8a5049060e9ac795af2
parentf8da1b6e1a0216315b1e84fe54a94779dd288754 (diff)
downloadopenttd-59c51f9fcef0fdce968613cb55721867e301cf01.tar.xz
(svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot...
-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 2cb240a76..a4e503a1b 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1417,7 +1417,7 @@ again:
v->cur_speed = 0;
return;
}
- } else if (GetDisallowedRoadDirections(v->tile) != DRD_NONE) {
+ } else if (GetRoadTileType(v->tile) == ROAD_TILE_NORMAL && GetDisallowedRoadDirections(v->tile) != DRD_NONE) {
v->cur_speed = 0;
return;
} else {