diff options
author | maedhros <maedhros@openttd.org> | 2007-05-23 13:52:10 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-05-23 13:52:10 +0000 |
commit | 3b2a1c1c69bae0de0ce04a93ec20b0f1221b42f6 (patch) | |
tree | 0be961e36a9ab58a5191dae9fd87cc10a3247cca /src/dock_gui.cpp | |
parent | 1a9d43ff40f859c705ab987ef66b1576b6090425 (diff) | |
download | openttd-3b2a1c1c69bae0de0ce04a93ec20b0f1221b42f6.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/dock_gui.cpp')
-rw-r--r-- | src/dock_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index 8cd977928..02abcd129 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -53,12 +53,12 @@ static void PlaceDocks_Buoy(TileIndex tile) static void PlaceDocks_DemolishArea(TileIndex tile) { - VpStartPlaceSizing(tile, VPM_X_AND_Y, GUI_PlaceProc_DemolishArea); + VpStartPlaceSizing(tile, VPM_X_AND_Y, DDSP_DEMOLISH_AREA); } static void PlaceDocks_BuildCanal(TileIndex tile) { - VpStartPlaceSizing(tile, VPM_X_OR_Y, GUI_PlaceProc_None); + VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_CREATE_WATER); } static void PlaceDocks_BuildLock(TileIndex tile) @@ -153,11 +153,11 @@ static void BuildDocksToolbWndProc(Window *w, WindowEvent *e) case WE_PLACE_MOUSEUP: if (e->we.place.pt.x != -1) { - switch (e->we.place.select_method) { - case VPM_X_AND_Y: + switch (e->we.place.select_proc) { + case DDSP_DEMOLISH_AREA: GUIPlaceProcDragXY(e); break; - case VPM_X_OR_Y: + case DDSP_CREATE_WATER: DoCommandP(e->we.place.tile, e->we.place.starttile, 0, CcBuildCanal, CMD_BUILD_CANAL | CMD_AUTO | CMD_MSG(STR_CANT_BUILD_CANALS)); break; default: break; |