(svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot...
authorrubidium
Thu, 31 May 2007 16:47:32 +0000
changeset 6766 0dc79fd64a9c
parent 6765 50903afa1a48
child 6767 92643057dfcd
(svn r10002) -Fix (r9999): don't try to get the disallowed directions from a road depot...
src/roadveh_cmd.cpp
--- a/src/roadveh_cmd.cpp	Thu May 31 15:40:36 2007 +0000
+++ b/src/roadveh_cmd.cpp	Thu May 31 16:47:32 2007 +0000
@@ -1417,7 +1417,7 @@
 					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 {