summaryrefslogtreecommitdiff
path: root/src/tree_gui.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-21 23:03:44 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit58cff7b081ce9ea4b5314cf8324ca60607389d15 (patch)
tree0d46a0522d5fbbb1039e1e31e07557ee1ad9befb /src/tree_gui.cpp
parentc6d7b98808575f31103121528565ed252a3cfc6c (diff)
downloadopenttd-58cff7b081ce9ea4b5314cf8324ca60607389d15.tar.xz
Codechange: Un-bitstuff the remaining on-map commands.
Diffstat (limited to 'src/tree_gui.cpp')
-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 794135716..0b0eeda22 100644
--- a/src/tree_gui.cpp
+++ b/src/tree_gui.cpp
@@ -231,7 +231,7 @@ public:
TileIndex tile = TileVirtXY(pt.x, pt.y);
if (this->mode == PM_NORMAL) {
- Command<CMD_PLANT_TREE>::Post(tile, this->tree_to_plant, tile, {});
+ Command<CMD_PLANT_TREE>::Post(tile, tile, this->tree_to_plant);
} else {
this->DoPlantForest(tile);
}
@@ -241,7 +241,7 @@ public:
void OnPlaceMouseUp(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt, TileIndex start_tile, TileIndex end_tile) override
{
if (_game_mode != GM_EDITOR && this->mode == PM_NORMAL && pt.x != -1 && select_proc == DDSP_PLANT_TREES) {
- Command<CMD_PLANT_TREE>::Post(STR_ERROR_CAN_T_PLANT_TREE_HERE, end_tile, this->tree_to_plant, start_tile, {});
+ Command<CMD_PLANT_TREE>::Post(STR_ERROR_CAN_T_PLANT_TREE_HERE, end_tile, start_tile, this->tree_to_plant);
}
}