summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-02 07:05:35 +0000
committertron <tron@openttd.org>2006-04-02 07:05:35 +0000
commitf2087afbba298b126fe2d848822a0a67cc7200fc (patch)
tree9d4bf9aa02ec14ba43e6627e5d554fb3ad78cc17 /road_cmd.c
parent2039471d3c865ab92b59a6d460fb23349f3358dc (diff)
downloadopenttd-f2087afbba298b126fe2d848822a0a67cc7200fc.tar.xz
(svn r4230) The road is asked for, not the rail. Undo part of r4164. (Pointed out by peter1138)
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 55c163e20..5e961254a 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -1012,7 +1012,7 @@ static uint32 GetTileTrackStatus_Road(TileIndex tile, TransportType mode)
0 : _road_trackbits[GetRoadBits(tile)] * 0x101;
case ROAD_CROSSING: {
- uint32 r = GetCrossingRailBits(tile) * 0x101;
+ uint32 r = (GetCrossingRoadAxis(tile) == AXIS_X ? TRACK_BIT_X : TRACK_BIT_Y) * 0x101;
if (IsCrossingBarred(tile)) r *= 0x10001;
return r;