File diff r83:a24870ef46c8 → r84:ffa541707cbb
station_cmd.c
Show inline comments
 
@@ -577,7 +577,7 @@ int32 CheckFlatLandBelow(uint tile, uint
 
		tileh = GetTileSlope(tile_cur, &z);
 

	
 
		// steep slopes are completely prohibited
 
		if (tileh & 0x10 || ((_is_ai_player || !_patches.build_on_slopes) && tileh != 0)) {
 
		if (tileh & 0x10 || (((!_patches.ainew_active && _is_ai_player) || !_patches.build_on_slopes) && tileh != 0)) {
 
			_error_message = STR_0007_FLAT_LAND_REQUIRED;
 
			return CMD_ERROR;
 
		}
 
@@ -782,8 +782,8 @@ int32 CmdBuildRailroadStation(int x_org,
 
			return_cmd_error(STR_3009_TOO_CLOSE_TO_ANOTHER_STATION);
 

	
 
		if (st->train_tile != 0) {
 
			// check if we want to expanding an already existing station? Only human players can do this.
 
			if (_is_ai_player || !_patches.join_stations || !CanExpandRailroadStation(st, finalvalues, direction))
 
			// check if we want to expanding an already existing station?
 
			if ((!_patches.ainew_active && _is_ai_player) || !_patches.join_stations || !CanExpandRailroadStation(st, finalvalues, direction))
 
				return_cmd_error(STR_3005_TOO_CLOSE_TO_ANOTHER_RAILROAD);
 
		}