diff options
author | tron <tron@openttd.org> | 2006-03-12 16:13:16 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-12 16:13:16 +0000 |
commit | 12d252d9bd7ffee83c4be5162cd506bda1070020 (patch) | |
tree | 3d2526e7f2638131186fe93a08829d1bf29f22b5 /depot.h | |
parent | 78083f0da7b7c94eccea15eec397e2afe96da1d5 (diff) | |
download | openttd-12d252d9bd7ffee83c4be5162cd506bda1070020.tar.xz |
(svn r3831) Add and use GetRailDepotDirection()
Diffstat (limited to 'depot.h')
-rw-r--r-- | depot.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ #include "direction.h" #include "pool.h" +#include "rail_map.h" #include "road_map.h" #include "tile.h" #include "variables.h" @@ -103,7 +104,7 @@ static inline DiagDirection GetDepotDirection(TileIndex tile, TransportType type switch (type) { - case TRANSPORT_RAIL: return (DiagDirection)GB(_m[tile].m5, 0, 2); + case TRANSPORT_RAIL: return GetRailDepotDirection(tile); case TRANSPORT_ROAD: return GetRoadDepotDirection(tile); case TRANSPORT_WATER: /* Water is stubborn, it stores the directions in a different order. */ |