summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-05-23 13:52:10 +0000
committermaedhros <maedhros@openttd.org>2007-05-23 13:52:10 +0000
commit35ce34d55ac373674e6ff108afaca6cd549b06bb (patch)
tree0be961e36a9ab58a5191dae9fd87cc10a3247cca /src/airport_gui.cpp
parentca5c578d0f51724d9c4e5b1101b81b442c049341 (diff)
downloadopenttd-35ce34d55ac373674e6ff108afaca6cd549b06bb.tar.xz
(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 888d26112..681f9b297 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -39,7 +39,7 @@ static void PlaceAirport(TileIndex tile)
static void PlaceAir_DemolishArea(TileIndex tile)
{
- VpStartPlaceSizing(tile, VPM_X_AND_Y, GUI_PlaceProc_None);
+ VpStartPlaceSizing(tile, VPM_X_AND_Y, DDSP_DEMOLISH_AREA);
}
@@ -95,7 +95,7 @@ static void BuildAirToolbWndProc(Window *w, WindowEvent *e)
break;
case WE_PLACE_MOUSEUP:
- if (e->we.place.pt.x != -1) {
+ if (e->we.place.pt.x != -1 && e->we.place.select_proc == DDSP_DEMOLISH_AREA) {
DoCommandP(e->we.place.tile, e->we.place.starttile, 0, CcPlaySound10, CMD_CLEAR_AREA | CMD_MSG(STR_00B5_CAN_T_CLEAR_THIS_AREA));
}
break;