From ebe99fd4935d54466730095e7a9f239181d5ba7b Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 11 Jan 2010 20:32:32 +0000 Subject: (svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company. --- src/network/network_command.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/network/network_command.cpp') diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp index 9a6a064b5..834d28da4 100644 --- a/src/network/network_command.cpp +++ b/src/network/network_command.cpp @@ -78,13 +78,14 @@ void NetworkAddCommandQueue(CommandPacket cp, NetworkClientSocket *cs) * @param cmd The command to execute (a CMD_* value) * @param callback A callback function to call after the command is finished * @param text The text to pass + * @param company The company that wants to send the command */ -void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback, const char *text) +void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback, const char *text, CompanyID company) { assert((cmd & CMD_FLAGS_MASK) == 0); CommandPacket c; - c.company = _local_company; + c.company = company; c.next = NULL; c.tile = tile; c.p1 = p1; -- cgit v1.2.3-54-g00ecf