Changeset - r9295:0463fc97c88d
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-05-18 14:04:51
smatz@openttd.org
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/tree_gui.cpp
Show inline comments
 
@@ -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,
0 comments (0 inline, 0 general)