summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-19 14:43:23 +0000
committertron <tron@openttd.org>2006-03-19 14:43:23 +0000
commitec34ed24efd303d9e8b871a9682695c09aa6f8fc (patch)
tree53c4a4a19a8ac153e943a787777a85bda0b4986b /rail_cmd.c
parenta90e46bf03365920f2a13254ec17f1d4f76727f6 (diff)
downloadopenttd-ec34ed24efd303d9e8b871a9682695c09aa6f8fc.tar.xz
(svn r3982) Fix last commit. I got confused by some strange test, which did nothing
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 67dc936bc..5943092ad 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1991,7 +1991,7 @@ static uint32 GetTileTrackStatus_Track(TileIndex tile, TransportType mode)
return ret;
} else {
if (GetRailTileSubtype(tile) == RAIL_SUBTYPE_DEPOT) {
- return 0;
+ return (DiagDirToAxis(GetRailDepotDirection(tile)) == AXIS_X ? TRACK_BIT_X : TRACK_BIT_Y) * 0x101;
} else {
return GetRailWaypointBits(tile) * 0x101;
}