summaryrefslogtreecommitdiff
path: root/road_map.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-08 15:29:23 +0000
committertron <tron@openttd.org>2006-03-08 15:29:23 +0000
commit463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254 (patch)
tree6a9a867d57cdc9d1a608088bf29d0b1186ef6934 /road_map.c
parent7bce62899c796cc114224c159249c7b302d2deae (diff)
downloadopenttd-463cf2ec6bc487aaf3c1ca6a5ea4bcca56194254.tar.xz
(svn r3795) Add a function to request the orientation of a depot
Diffstat (limited to 'road_map.c')
-rw-r--r--road_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_map.c b/road_map.c
index 14611e88b..3780334a3 100644
--- a/road_map.c
+++ b/road_map.c
@@ -16,7 +16,7 @@ RoadBits GetAnyRoadBits(TileIndex tile)
default:
case ROAD_NORMAL: return GetRoadBits(tile);
case ROAD_CROSSING: return GetCrossingRoadBits(tile);
- case ROAD_DEPOT: return DiagDirToRoadBits(GB(_m[tile].m5, 0, 2));
+ case ROAD_DEPOT: return DiagDirToRoadBits(GetRoadDepotDirection(tile));
}
case MP_STATION: