(svn r4934) -Fix: Correct a misleading comment, and remove an unneeded condition from the corresponding if (thans Tron for pointing it out)
authorcelestar
Sat, 20 May 2006 21:04:43 +0000
changeset 3880 cde142e509ec
parent 3879 3e9cd6403d73
child 3881 b2a66893f250
(svn r4934) -Fix: Correct a misleading comment, and remove an unneeded condition from the corresponding if (thans Tron for pointing it out)
elrail.c
--- a/elrail.c	Sat May 20 18:10:39 2006 +0000
+++ b/elrail.c	Sat May 20 21:04:43 2006 +0000
@@ -214,8 +214,8 @@
 		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]);