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
@@ -1412,6 +1412,11 @@ static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlags flags, int
|
||||
return Command<CMD_LANDSCAPE_CLEAR>::Do(flags, tile);
|
||||
}
|
||||
|
||||
static CommandCost CheckBuildAbove_Water(TileIndex tile, DoCommandFlags flags, Axis, int)
|
||||
{
|
||||
if (IsWater(tile) || IsCoast(tile)) return CommandCost();
|
||||
return Command<CMD_LANDSCAPE_CLEAR>::Do(flags, tile);
|
||||
}
|
||||
|
||||
extern const TileTypeProcs _tile_type_water_procs = {
|
||||
DrawTile_Water, // draw_tile_proc
|
||||
@@ -1428,4 +1433,5 @@ extern const TileTypeProcs _tile_type_water_procs = {
|
||||
VehicleEnter_Water, // vehicle_enter_tile_proc
|
||||
GetFoundation_Water, // get_foundation_proc
|
||||
TerraformTile_Water, // terraform_tile_proc
|
||||
CheckBuildAbove_Water, // check_build_above_proc
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user