diff options
author | tron <tron@openttd.org> | 2006-03-19 14:43:23 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-19 14:43:23 +0000 |
commit | 85da30604991a2b024aeea64443e61cf979c2424 (patch) | |
tree | 53c4a4a19a8ac153e943a787777a85bda0b4986b /rail_cmd.c | |
parent | 4b74fa19230897c9e9b20e6bcba2b16c748cb09f (diff) | |
download | openttd-85da30604991a2b024aeea64443e61cf979c2424.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.c | 2 |
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; } |