diff options
author | tron <tron@openttd.org> | 2006-04-02 07:05:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-02 07:05:35 +0000 |
commit | f2087afbba298b126fe2d848822a0a67cc7200fc (patch) | |
tree | 9d4bf9aa02ec14ba43e6627e5d554fb3ad78cc17 | |
parent | 2039471d3c865ab92b59a6d460fb23349f3358dc (diff) | |
download | openttd-f2087afbba298b126fe2d848822a0a67cc7200fc.tar.xz |
(svn r4230) The road is asked for, not the rail. Undo part of r4164. (Pointed out by peter1138)
-rw-r--r-- | road_cmd.c | 2 |
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; |