summaryrefslogtreecommitdiff
path: root/src
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
commitf7f289667d8f8b705b4ea695615f892dbf08a5dd (patch)
treeaceebc5ebca0d077c9d7c8a5049060e9ac795af2 /src
parent78151810d7cade6d6599d3c8a70b73ef8104a4d4 (diff)
downloadopenttd-f7f289667d8f8b705b4ea695615f892dbf08a5dd.tar.xz
(svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road 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 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 {