equal
deleted
inserted
replaced
37 DoCommandP(tile, _selected_airport_type, 0, CcBuildAirport, CMD_BUILD_AIRPORT | CMD_AUTO | CMD_NO_WATER | CMD_MSG(STR_A001_CAN_T_BUILD_AIRPORT_HERE)); |
37 DoCommandP(tile, _selected_airport_type, 0, CcBuildAirport, CMD_BUILD_AIRPORT | CMD_AUTO | CMD_NO_WATER | CMD_MSG(STR_A001_CAN_T_BUILD_AIRPORT_HERE)); |
38 } |
38 } |
39 |
39 |
40 static void PlaceAir_DemolishArea(TileIndex tile) |
40 static void PlaceAir_DemolishArea(TileIndex tile) |
41 { |
41 { |
42 VpStartPlaceSizing(tile, VPM_X_AND_Y, GUI_PlaceProc_None); |
42 VpStartPlaceSizing(tile, VPM_X_AND_Y, DDSP_DEMOLISH_AREA); |
43 } |
43 } |
44 |
44 |
45 |
45 |
46 enum { |
46 enum { |
47 ATW_AIRPORT = 3, |
47 ATW_AIRPORT = 3, |
93 case WE_PLACE_DRAG: |
93 case WE_PLACE_DRAG: |
94 VpSelectTilesWithMethod(e->we.place.pt.x, e->we.place.pt.y, e->we.place.select_method); |
94 VpSelectTilesWithMethod(e->we.place.pt.x, e->we.place.pt.y, e->we.place.select_method); |
95 break; |
95 break; |
96 |
96 |
97 case WE_PLACE_MOUSEUP: |
97 case WE_PLACE_MOUSEUP: |
98 if (e->we.place.pt.x != -1) { |
98 if (e->we.place.pt.x != -1 && e->we.place.select_proc == DDSP_DEMOLISH_AREA) { |
99 DoCommandP(e->we.place.tile, e->we.place.starttile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA)); |
99 DoCommandP(e->we.place.tile, e->we.place.starttile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA)); |
100 } |
100 } |
101 break; |
101 break; |
102 |
102 |
103 case WE_ABORT_PLACE_OBJ: |
103 case WE_ABORT_PLACE_OBJ: |