summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-07 07:19:14 +0000
committercelestar <celestar@openttd.org>2006-04-07 07:19:14 +0000
commitcc51832917f377fccda4f1e7fa046e6b318067c7 (patch)
tree998f258ab92451ebc383559b424cd600c9acd3dc
parent04d6788bfdbdef2aa02cc373ebddf0147c81d4ac (diff)
downloadopenttd-cc51832917f377fccda4f1e7fa046e6b318067c7.tar.xz
(svn r4305) -Codechange: Minor elrail cleanup (Tron)
-rw-r--r--elrail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elrail.c b/elrail.c
index d8b08f62a..8a1256f2d 100644
--- a/elrail.c
+++ b/elrail.c
@@ -166,7 +166,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
which have no middle tiles */
trackconfig[TS_HOME] = GetRailTrackBitsUniversal(ti->tile, &OverridePCP);
/* If a track bit is present that is not in the main direction, the track is level */
- isflat[TS_HOME] = trackconfig[TS_HOME] & (TRACK_BIT_UPPER | TRACK_BIT_LOWER | TRACK_BIT_LEFT | TRACK_BIT_RIGHT);
+ isflat[TS_HOME] = trackconfig[TS_HOME] & (TRACK_BIT_HORZ | TRACK_BIT_VERT);
AdjustTileh(ti->tile, &tileh[TS_HOME]);
@@ -180,7 +180,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
tileh[TS_NEIGHBOUR] = GetTileSlope(neighbour, NULL);
trackconfig[TS_NEIGHBOUR] = GetRailTrackBitsUniversal(neighbour, NULL);
if (IsTunnelTile(neighbour) && i != GetTunnelDirection(neighbour)) trackconfig[TS_NEIGHBOUR] = 0;
- isflat[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] & (TRACK_BIT_UPPER | TRACK_BIT_LOWER | TRACK_BIT_LEFT | TRACK_BIT_RIGHT);
+ isflat[TS_NEIGHBOUR] = trackconfig[TS_NEIGHBOUR] & (TRACK_BIT_HORZ | TRACK_BIT_VERT);
PPPpreferred[i] = 0xFF; /* We start with preferring everything (end-of-line in any direction) */
PPPallowed[i] = AllowedPPPonPCP[i];