Mercurial > hg > openttd
changeset 9295:2e476f1b6573 draft
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
author | smatz <smatz@openttd.org> |
---|---|
date | Sun, 18 May 2008 14:04:51 +0000 |
parents | 47b54e10e0b2 |
children | a5e3cd9eceb8 |
files | src/tree_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tree_gui.cpp +++ b/src/tree_gui.cpp @@ -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,