|
@@ -661,13 +661,13 @@ CommandCost CheckBuildableTile(TileIndex
|
|
|
return_cmd_error(STR_ERROR_MUST_DEMOLISH_BRIDGE_FIRST);
|
|
|
}
|
|
|
|
|
|
CommandCost ret = EnsureNoVehicleOnGround(tile);
|
|
|
if (ret.Failed()) return ret;
|
|
|
|
|
|
uint z;
|
|
|
int z;
|
|
|
Slope tileh = GetTileSlope(tile, &z);
|
|
|
|
|
|
/* Prohibit building if
|
|
|
* 1) The tile is "steep" (i.e. stretches two height levels).
|
|
|
* 2) The tile is non-flat and the build_on_slopes switch is disabled.
|
|
|
*/
|
|
@@ -2581,13 +2581,13 @@ static void DrawTile_Station(TileInfo *t
|
|
|
/* don't show foundation for docks */
|
|
|
if (ti->tileh != SLOPE_FLAT && !IsDock(ti->tile)) {
|
|
|
if (statspec != NULL && HasBit(statspec->flags, SSF_CUSTOM_FOUNDATIONS)) {
|
|
|
/* Station has custom foundations.
|
|
|
* Check whether the foundation continues beyond the tile's upper sides. */
|
|
|
uint edge_info = 0;
|
|
|
uint z;
|
|
|
int z;
|
|
|
Slope slope = GetFoundationPixelSlope(ti->tile, &z);
|
|
|
if (!HasFoundationNW(ti->tile, slope, z)) SetBit(edge_info, 0);
|
|
|
if (!HasFoundationNE(ti->tile, slope, z)) SetBit(edge_info, 1);
|
|
|
SpriteID image = GetCustomStationFoundationRelocation(statspec, st, ti->tile, tile_layout, edge_info);
|
|
|
|
|
|
if (HasBit(statspec->flags, SSF_EXTENDED_FOUNDATIONS)) {
|