diff options
author | smatz <smatz@openttd.org> | 2008-05-18 14:04:51 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-18 14:04:51 +0000 |
commit | 119b892f95e192c278d2d88f50581a99cfc7db30 (patch) | |
tree | bbd0544639308d8dba5c0a3b2bf8d2a86872d1b1 | |
parent | ca27e25ab092a403bcc44ce8219c89d2dc3c4285 (diff) | |
download | openttd-119b892f95e192c278d2d88f50581a99cfc7db30.tar.xz |
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
-rw-r--r-- | src/tree_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp index d02c55648..dd4beb46d 100644 --- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -128,12 +128,12 @@ public: VpSetPlaceSizingLimit(20); } - virtual void OnPlaceDrag(ViewportPlaceMethod select_method, byte select_proc, Point pt) + virtual void OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt) { VpSelectTilesWithMethod(pt.x, pt.y, select_method); } - virtual void OnPlaceMouseUp(ViewportPlaceMethod select_method, byte select_proc, Point pt, TileIndex start_tile, TileIndex end_tile) + virtual void OnPlaceMouseUp(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt, TileIndex start_tile, TileIndex end_tile) { if (pt.x != -1 && select_proc == DDSP_PLANT_TREES) { DoCommandP(end_tile, this->tree_to_plant, start_tile, NULL, |