summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-05-20 21:04:43 +0000
committercelestar <celestar@openttd.org>2006-05-20 21:04:43 +0000
commite693290ed136bed943f34b410a09837bf20a0f21 (patch)
treed8d573604c2145151762d787a9784858e11d4894
parent6f86766b21f2ccd0b842ce398ab56d34b34bb2c9 (diff)
downloadopenttd-e693290ed136bed943f34b410a09837bf20a0f21.tar.xz
(svn r4934) -Fix: Correct a misleading comment, and remove an unneeded condition from the corresponding if (thans Tron for pointing it out)
-rw-r--r--elrail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elrail.c b/elrail.c
index eef7f2bac..f0476d210 100644
--- a/elrail.c
+++ b/elrail.c
@@ -214,8 +214,8 @@ static void DrawCatenaryRailway(const TileInfo *ti)
PPPpreferred[i] *= HASBIT(PCPstatus, i);
PPPallowed[i] *= HASBIT(PCPstatus, i);
- /* Station on a non-flat tile means foundation. add one height level and adjust tileh */
- if (IsTileType(neighbour, MP_STATION) && tileh[TS_NEIGHBOUR] != SLOPE_FLAT) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
+ /* A station is always "flat", so adjust the tileh accordingly */
+ if (IsTileType(neighbour, MP_STATION)) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
/* Read the foundataions if they are present, and adjust the tileh */
if (IsTileType(neighbour, MP_RAILWAY)) foundation = GetRailFoundation(tileh[TS_NEIGHBOUR], trackconfig[TS_NEIGHBOUR]);