mirror of https://github.com/OpenTTD/OpenTTD
(svn r10168) -Fix [FS#879]: cannot build airport when an aircraft is flying over it.
parent
108ee9bc3e
commit
d58d721fab
|
@ -626,7 +626,7 @@ int32 CheckFlatLandBelow(TileIndex tile, uint w, uint h, uint flags, uint invali
|
||||||
return_cmd_error(STR_5007_MUST_DEMOLISH_BRIDGE_FIRST);
|
return_cmd_error(STR_5007_MUST_DEMOLISH_BRIDGE_FIRST);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!EnsureNoVehicle(tile_cur)) return CMD_ERROR;
|
if (!EnsureNoVehicleOnGround(tile_cur)) return CMD_ERROR;
|
||||||
|
|
||||||
uint z;
|
uint z;
|
||||||
Slope tileh = GetTileSlope(tile_cur, &z);
|
Slope tileh = GetTileSlope(tile_cur, &z);
|
||||||
|
|
Loading…
Reference in New Issue