From 119b892f95e192c278d2d88f50581a99cfc7db30 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 18 May 2008 14:04:51 +0000 Subject: (svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded --- src/tree_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tree_gui.cpp') 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, -- cgit v1.2.3-54-g00ecf