elrail.c
changeset 3880 b493c5318c9b
parent 3793 7fe24e10ea63
child 3933 231ae3c419f4
equal deleted inserted replaced
3879:cfa3cf4731d2 3880:b493c5318c9b
   212 
   212 
   213 		/* Deactivate all PPPs if PCP is not used */
   213 		/* Deactivate all PPPs if PCP is not used */
   214 		PPPpreferred[i] *= HASBIT(PCPstatus, i);
   214 		PPPpreferred[i] *= HASBIT(PCPstatus, i);
   215 		PPPallowed[i] *= HASBIT(PCPstatus, i);
   215 		PPPallowed[i] *= HASBIT(PCPstatus, i);
   216 
   216 
   217 		/* Station on a non-flat tile means foundation. add one height level and adjust tileh */
   217 		/* A station is always "flat", so adjust the tileh accordingly */
   218 		if (IsTileType(neighbour, MP_STATION) && tileh[TS_NEIGHBOUR] != SLOPE_FLAT) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
   218 		if (IsTileType(neighbour, MP_STATION)) tileh[TS_NEIGHBOUR] = SLOPE_FLAT;
   219 
   219 
   220 		/* Read the foundataions if they are present, and adjust the tileh */
   220 		/* Read the foundataions if they are present, and adjust the tileh */
   221 		if (IsTileType(neighbour, MP_RAILWAY)) foundation = GetRailFoundation(tileh[TS_NEIGHBOUR], trackconfig[TS_NEIGHBOUR]);
   221 		if (IsTileType(neighbour, MP_RAILWAY)) foundation = GetRailFoundation(tileh[TS_NEIGHBOUR], trackconfig[TS_NEIGHBOUR]);
   222 		if (IsBridgeTile(neighbour) && IsBridgeRamp(neighbour)) {
   222 		if (IsBridgeTile(neighbour) && IsBridgeRamp(neighbour)) {
   223 			foundation = GetBridgeFoundation(tileh[TS_NEIGHBOUR], DiagDirToAxis(GetBridgeRampDirection(neighbour)));
   223 			foundation = GetBridgeFoundation(tileh[TS_NEIGHBOUR], DiagDirToAxis(GetBridgeRampDirection(neighbour)));