From 00cdf24057a2613e2307bf7a2529fb48f89a53eb Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 29 Mar 2006 20:06:31 +0000 Subject: (svn r4156) CodeChange : Little cleanup after Celestar's elrail merge --- rail_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rail_cmd.c b/rail_cmd.c index 75e0263f1..47831ba7e 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1300,7 +1300,7 @@ static void DrawTrackBits(TileInfo* ti, TrackBits track, bool earth, bool snow, if (track & TRACK_BIT_RIGHT) DrawGroundSprite(rti->base_sprites.single_e); } - if (GB(_m[ti->tile].m3, 0, 4) == RAILTYPE_ELECTRIC) DrawCatenary(ti); + if (GetRailType(ti->tile) == RAILTYPE_ELECTRIC) DrawCatenary(ti); } @@ -1519,7 +1519,7 @@ static bool SetSignalsEnumProc(TileIndex tile, SetSignalsData *ssd, int track, u } // remember if this block has a presignal. - ssd->has_presignal |= (_m[tile].m4&1); + ssd->has_presignal |= (_m[tile].m4 & 1); } if (HasSignalOnTrackdir(tile, track) && _m[tile].m4 & 2) { -- cgit v1.2.3-70-g09d2