From f4482907dabf064299c7ef50a3ff47589ccb54ff Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 30 Aug 2007 17:17:04 +0000 Subject: (svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types. -Codechange: barren the rail grounds on terraforming. --- src/dummy_land.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dummy_land.cpp') diff --git a/src/dummy_land.cpp b/src/dummy_land.cpp index 03d081cce..d02dab88b 100644 --- a/src/dummy_land.cpp +++ b/src/dummy_land.cpp @@ -68,6 +68,11 @@ static uint32 GetTileTrackStatus_Dummy(TileIndex tile, TransportType mode, uint return 0; } +static CommandCost TerraformTile_Dummy(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new) +{ + return_cmd_error(STR_0001_OFF_EDGE_OF_MAP); +} + extern const TileTypeProcs _tile_type_dummy_procs = { DrawTile_Dummy, /* draw_tile_proc */ GetSlopeZ_Dummy, /* get_slope_z_proc */ @@ -82,4 +87,5 @@ extern const TileTypeProcs _tile_type_dummy_procs = { NULL, /* get_produced_cargo_proc */ NULL, /* vehicle_enter_tile_proc */ GetFoundation_Dummy, /* get_foundation_proc */ + TerraformTile_Dummy, /* terraform_tile_proc */ }; -- cgit v1.2.3-54-g00ecf