diff options
author | belugas <belugas@openttd.org> | 2006-03-29 20:06:31 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-03-29 20:06:31 +0000 |
commit | 9b3f9d3c791c142076f5ca5e39199cedaf5b1334 (patch) | |
tree | 3631ecb9ebb69a6165429cc550130d2efe7cff4a | |
parent | f188d35dac3608264880c5c5455777d160d77a7c (diff) | |
download | openttd-9b3f9d3c791c142076f5ca5e39199cedaf5b1334.tar.xz |
(svn r4156) CodeChange : Little cleanup after Celestar's elrail merge
-rw-r--r-- | rail_cmd.c | 4 |
1 files 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) { |