File diff r10706:1df70cb6bed3 → r10707:8a385eb35ca8
src/rail_cmd.cpp
Show inline comments
 
@@ -780,16 +780,15 @@ CommandCost CmdBuildTrainDepot(TileIndex
 
	tileh = GetTileSlope(tile, NULL);
 

	
 
	DiagDirection dir = Extract<DiagDirection, 0>(p2);
 

	
 
	/* Prohibit construction if
 
	 * The tile is non-flat AND
 
	 * 1) The AI is "old-school"
 
	 * 2) build-on-slopes is disabled
 
	 * 3) the tile is steep i.e. spans two height levels
 
	 * 4) the exit points in the wrong direction
 
	 * 1) build-on-slopes is disabled
 
	 * 2) the tile is steep i.e. spans two height levels
 
	 * 3) the exit points in the wrong direction
 
	 */
 

	
 
	if (tileh != SLOPE_FLAT && (
 
				!_settings_game.construction.build_on_slopes ||
 
				IsSteepSlope(tileh) ||
 
				!CanBuildDepotByTileh(dir, tileh)