diff options
author | rubidium <rubidium@openttd.org> | 2009-01-07 15:27:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-07 15:27:19 +0000 |
commit | 8d017f0ea1e21276d00f3325acd71e40c53cfc39 (patch) | |
tree | 26ecdc3e2c01b662df452e9e13bbf21461754bc2 /src/network/network_data.cpp | |
parent | f5b23103d7f73f1b5e5828133f20e8914f7e2a3e (diff) | |
download | openttd-8d017f0ea1e21276d00f3325acd71e40c53cfc39.tar.xz |
(svn r14897) -Codechange: don't allow a few command flags to be sent over the network as it's bogus information anyway; e.g. the "do not send over network" flag as it will be set whenever the command is received from the server/client.
-Codechange: test earlier whether the command (send from the server) is actually valid.
Diffstat (limited to 'src/network/network_data.cpp')
-rw-r--r-- | src/network/network_data.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_data.cpp b/src/network/network_data.cpp index cdcf0ba39..c56c7905f 100644 --- a/src/network/network_data.cpp +++ b/src/network/network_data.cpp @@ -34,6 +34,8 @@ void NetworkAddCommandQueue(NetworkClientSocket *cs, CommandPacket *cp) // Prepare a DoCommand to be send over the network void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback, const char *text) { + assert((cmd & CMD_FLAG_MASK) == 0); + CommandPacket c; c.company = _local_company; |