summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-03-29 20:06:31 +0000
committerbelugas <belugas@openttd.org>2006-03-29 20:06:31 +0000
commit00cdf24057a2613e2307bf7a2529fb48f89a53eb (patch)
tree3631ecb9ebb69a6165429cc550130d2efe7cff4a
parent3ae99e17bbf4ceb9b10019473f48c9b73221af55 (diff)
downloadopenttd-00cdf24057a2613e2307bf7a2529fb48f89a53eb.tar.xz
(svn r4156) CodeChange : Little cleanup after Celestar's elrail merge
-rw-r--r--rail_cmd.c4
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) {