summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-10-29 00:56:07 +0200
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit996b16de707c449a83676c614edbd5a81d37b253 (patch)
treeeb4298aef03768ca8483959db9799cd414f779af /src/command_func.h
parenta05fd7aa50ecbee425df2d6f9015ec3ea359232f (diff)
downloadopenttd-996b16de707c449a83676c614edbd5a81d37b253.tar.xz
Codechange: Use lambdas instead of CommandContainer to manage station picker commands.
Diffstat (limited to 'src/command_func.h')
-rw-r--r--src/command_func.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/command_func.h b/src/command_func.h
index 0d000755c..0b539746d 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -37,13 +37,11 @@ static const CommandCost CMD_ERROR = CommandCost(INVALID_STRING_ID);
typedef std::vector<byte> CommandDataBuffer;
CommandCost DoCommand(DoCommandFlag flags, Commands cmd, TileIndex tile, uint32 p1, uint32 p2, const std::string &text = {});
-CommandCost DoCommand(const CommandContainer *container, DoCommandFlag flags);
bool DoCommandP(Commands cmd, StringID err_message, CommandCallback *callback, TileIndex tile, uint32 p1, uint32 p2, const std::string &text = {});
bool DoCommandP(Commands cmd, StringID err_message, TileIndex tile, uint32 p1, uint32 p2, const std::string &text = {});
bool DoCommandP(Commands cmd, CommandCallback *callback, TileIndex tile, uint32 p1, uint32 p2, const std::string &text = {});
bool DoCommandP(Commands cmd, TileIndex tile, uint32 p1, uint32 p2, const std::string &text = {});
-bool DoCommandP(const CommandContainer *container, bool my_cmd = true, bool network_command = false);
bool InjectNetworkCommand(Commands cmd, StringID err_message, CommandCallback *callback, bool my_cmd, TileIndex tile, uint32 p1, uint32 p2, const std::string &text);