summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-11 20:32:32 +0000
committerrubidium <rubidium@openttd.org>2010-01-11 20:32:32 +0000
commitebe99fd4935d54466730095e7a9f239181d5ba7b (patch)
treeadaacb8e6827eaad9ad49c81905a04dca0bf8c21 /src/command_func.h
parent3e5a87a52cc8355a2a5c2831c60643bf30d41a3a (diff)
downloadopenttd-ebe99fd4935d54466730095e7a9f239181d5ba7b.tar.xz
(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.
Diffstat (limited to 'src/command_func.h')
-rw-r--r--src/command_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_func.h b/src/command_func.h
index 14a683623..85b089398 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -13,6 +13,7 @@
#define COMMAND_FUNC_H
#include "command_type.h"
+#include "company_type.h"
/**
* Checks if a command failes.
@@ -70,11 +71,10 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
bool DoCommandP(const CommandContainer *container, bool my_cmd = true);
#ifdef ENABLE_NETWORK
-
/**
* Send a command over the network
*/
-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);
#endif /* ENABLE_NETWORK */
extern Money _additional_cash_required;