summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-28 22:43:38 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit850385465543a9bd589084ec2ac6b0693c481fea (patch)
treefa0d375d36e946caee2c4ebc6a8ecd4e35f33d5b /src/town_gui.cpp
parentd85348b1d1b9aa7099255eda7c1058f9749d1003 (diff)
downloadopenttd-850385465543a9bd589084ec2ac6b0693c481fea.tar.xz
Codechange: Pass unpacked command arguments to command callbacks (except Script).
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index 90aa58855..0c5f86ab7 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -1009,7 +1009,7 @@ void ShowTownDirectory()
new TownDirectoryWindow(&_town_directory_desc);
}
-void CcFoundTown(Commands cmd, const CommandCost &result, TileIndex tile, const CommandDataBuffer &)
+void CcFoundTown(Commands cmd, const CommandCost &result, TileIndex tile)
{
if (result.Failed()) return;
@@ -1017,7 +1017,7 @@ void CcFoundTown(Commands cmd, const CommandCost &result, TileIndex tile, const
if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace();
}
-void CcFoundRandomTown(Commands cmd, const CommandCost &result, TileIndex tile, const CommandDataBuffer &)
+void CcFoundRandomTown(Commands cmd, const CommandCost &result, TileIndex tile)
{
if (result.Succeeded()) ScrollMainWindowToTile(Town::Get(_new_town_id)->xy);
}