(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
authorsmatz
Sun, 18 May 2008 14:04:51 +0000
changeset 9295 ee2d463700e3
parent 9294 8e74039d3ca0
child 9296 b7375d368dc9
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
src/tree_gui.cpp
--- a/src/tree_gui.cpp	Sun May 18 12:47:08 2008 +0000
+++ b/src/tree_gui.cpp	Sun May 18 14:04:51 2008 +0000
@@ -128,12 +128,12 @@
 		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,