summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-18 14:04:51 +0000
committersmatz <smatz@openttd.org>2008-05-18 14:04:51 +0000
commit4bf7ab0d1c7e387277cb28f9b3a7391e07bbcd02 (patch)
treebbd0544639308d8dba5c0a3b2bf8d2a86872d1b1 /src
parente82bab5323c61583a4ecbbc6107ba9d38eb6aa78 (diff)
downloadopenttd-4bf7ab0d1c7e387277cb28f9b3a7391e07bbcd02.tar.xz
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
Diffstat (limited to 'src')
-rw-r--r--src/tree_gui.cpp4
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,