mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 11:25:42 +01:00
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
This commit is contained in:
parent
e82bab5323
commit
4bf7ab0d1c
@ -128,12 +128,12 @@ public:
|
|||||||
VpSetPlaceSizingLimit(20);
|
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);
|
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) {
|
if (pt.x != -1 && select_proc == DDSP_PLANT_TREES) {
|
||||||
DoCommandP(end_tile, this->tree_to_plant, start_tile, NULL,
|
DoCommandP(end_tile, this->tree_to_plant, start_tile, NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user