diff options
author | tron <tron@openttd.org> | 2006-03-30 09:08:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-30 09:08:43 +0000 |
commit | d9e705ae52913ae8e8d28c979382527988b5dc11 (patch) | |
tree | 11bf0f9de75c2bc770acc39ef886696c744b9f4e /road_cmd.c | |
parent | 1bb8d3a3b5fc6420a060a73bfec04d72fbec1f16 (diff) | |
download | openttd-d9e705ae52913ae8e8d28c979382527988b5dc11.tar.xz |
(svn r4164) Use acessor functions
Diffstat (limited to 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/road_cmd.c b/road_cmd.c index 20505c959..8d40381c5 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -787,7 +787,7 @@ static void DrawTile_Road(TileInfo *ti) } DrawGroundSprite(image); - if (GB(_m[ti->tile].m4, 0, 4) == RAILTYPE_ELECTRIC) DrawCatenary(ti); + if (GetRailTypeCrossing(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti); break; } @@ -1014,9 +1014,9 @@ static uint32 GetTileTrackStatus_Road(TileIndex tile, TransportType mode) 0 : _road_trackbits[GetRoadBits(tile)] * 0x101; case ROAD_CROSSING: { - uint32 r = (GetCrossingRoadAxis(tile) == AXIS_X ? TRACK_BIT_X : TRACK_BIT_Y) * 0x101; + uint32 r = GetCrossingRailBits(tile) * 0x101; - if (_m[tile].m5 & 4) r *= 0x10001; + if (IsCrossingBarred(tile)) r *= 0x10001; return r; } |