File diff r12965:71b3aafd8d14 → r12966:ecbe762e1011
src/station_cmd.cpp
Show inline comments
 
@@ -724,13 +724,13 @@ CommandCost CheckFlatLandBelow(TileIndex
 
			}
 
		} else if (check_clear) {
 
			/* Rail type is only valid when building a railway station; in station to
 
			 * build isn't a rail station it's INVALID_RAILTYPE. */
 
			if (rt != INVALID_RAILTYPE &&
 
					IsPlainRailTile(tile_cur) && !HasSignals(tile_cur) &&
 
					HasPowerOnRail(GetRailType(tile), rt)) {
 
					HasPowerOnRail(GetRailType(tile_cur), rt)) {
 
				/* Allow overbuilding if the tile:
 
				 *  - has rail, but no signals
 
				 *  - it has exactly one track
 
				 *  - the track is in line with the station
 
				 *  - the current rail type has power on the to-be-built type (e.g. convert normal rail to el rail)
 
				 */