comparison src/station_cmd.cpp @ 7494:3f6f5fcc079a draft

(svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types. -Codechange: barren the rail grounds on terraforming.
author rubidium <rubidium@openttd.org>
date Thu, 30 Aug 2007 17:17:04 +0000
parents 4c057868119e
children 1381772864e1
comparison
equal deleted inserted replaced
7493:2068a51c2e6c 7494:3f6f5fcc079a
2876 2876
2877 for (CargoID c = 0; c < NUM_CARGO; c++) st->goods[c].cargo.InvalidateCache(); 2877 for (CargoID c = 0; c < NUM_CARGO; c++) st->goods[c].cargo.InvalidateCache();
2878 } 2878 }
2879 } 2879 }
2880 2880
2881 static CommandCost TerraformTile_Station(TileIndex tile, uint32 flags, uint z_new, Slope tileh_new)
2882 {
2883 return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
2884 }
2885
2881 2886
2882 extern const TileTypeProcs _tile_type_station_procs = { 2887 extern const TileTypeProcs _tile_type_station_procs = {
2883 DrawTile_Station, /* draw_tile_proc */ 2888 DrawTile_Station, /* draw_tile_proc */
2884 GetSlopeZ_Station, /* get_slope_z_proc */ 2889 GetSlopeZ_Station, /* get_slope_z_proc */
2885 ClearTile_Station, /* clear_tile_proc */ 2890 ClearTile_Station, /* clear_tile_proc */
2891 TileLoop_Station, /* tile_loop_clear */ 2896 TileLoop_Station, /* tile_loop_clear */
2892 ChangeTileOwner_Station, /* change_tile_owner_clear */ 2897 ChangeTileOwner_Station, /* change_tile_owner_clear */
2893 NULL, /* get_produced_cargo_proc */ 2898 NULL, /* get_produced_cargo_proc */
2894 VehicleEnter_Station, /* vehicle_enter_tile_proc */ 2899 VehicleEnter_Station, /* vehicle_enter_tile_proc */
2895 GetFoundation_Station, /* get_foundation_proc */ 2900 GetFoundation_Station, /* get_foundation_proc */
2901 TerraformTile_Station, /* terraform_tile_proc */
2896 }; 2902 };
2897 2903
2898 static const SaveLoad _roadstop_desc[] = { 2904 static const SaveLoad _roadstop_desc[] = {
2899 SLE_VAR(RoadStop,xy, SLE_UINT32), 2905 SLE_VAR(RoadStop,xy, SLE_UINT32),
2900 SLE_CONDNULL(1, 0, 44), 2906 SLE_CONDNULL(1, 0, 44),