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/misc_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/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 380b8fc38..34c1564d5 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -382,7 +382,7 @@ static void BuildTreesWndProc(Window *w, WindowEvent *e) } break; case WE_PLACE_OBJ: - VpStartPlaceSizing(e->we.place.tile, VPM_X_AND_Y_LIMITED, GUI_PlaceProc_None); + VpStartPlaceSizing(e->we.place.tile, VPM_X_AND_Y_LIMITED, DDSP_PLANT_TREES); VpSetPlaceSizingLimit(20); break; @@ -391,7 +391,7 @@ static void BuildTreesWndProc(Window *w, WindowEvent *e) return; case WE_PLACE_MOUSEUP: - if (e->we.place.pt.x != -1) { + if (e->we.place.pt.x != -1 && e->we.place.select_proc == DDSP_PLANT_TREES) { DoCommandP(e->we.place.tile, _tree_to_plant, e->we.place.starttile, NULL, CMD_PLANT_TREE | CMD_AUTO | CMD_MSG(STR_2805_CAN_T_PLANT_TREE_HERE)); } |