mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 20:24:12 +01:00
Codechange: Implement tile proc handler to test for building bridge over tile.
This commit is contained in:
committed by
Peter Nelson
parent
77503776b6
commit
f30f808b50
@@ -390,6 +390,12 @@ static CommandCost TerraformTile_Clear(TileIndex tile, DoCommandFlags flags, int
|
||||
return Command<CMD_LANDSCAPE_CLEAR>::Do(flags, tile);
|
||||
}
|
||||
|
||||
static CommandCost CheckBuildAbove_Clear(TileIndex, DoCommandFlags, Axis, int)
|
||||
{
|
||||
/* Can always build above clear tiles. */
|
||||
return CommandCost();
|
||||
}
|
||||
|
||||
extern const TileTypeProcs _tile_type_clear_procs = {
|
||||
DrawTile_Clear, ///< draw_tile_proc
|
||||
GetSlopePixelZ_Clear, ///< get_slope_z_proc
|
||||
@@ -405,4 +411,5 @@ extern const TileTypeProcs _tile_type_clear_procs = {
|
||||
nullptr, ///< vehicle_enter_tile_proc
|
||||
GetFoundation_Clear, ///< get_foundation_proc
|
||||
TerraformTile_Clear, ///< terraform_tile_proc
|
||||
CheckBuildAbove_Clear, // check_build_above_proc
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user