diff options
author | darkvater <darkvater@openttd.org> | 2004-09-12 15:29:37 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-12 15:29:37 +0000 |
commit | 99687cf513905a04ae18dfbcbe6fd13c6cbe9694 (patch) | |
tree | 6a2158dce07948cb902981f67daff0a278fe73f2 /command.c | |
parent | f64c1bda4ba0d4723974117e27452a68611d5db4 (diff) | |
download | openttd-99687cf513905a04ae18dfbcbe6fd13c6cbe9694.tar.xz |
(svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over network] (sign_de)
-Fix: Only server can pause in network, action disabled for clients
-Fix: Direct Connect editbox can handle up to max ~35 characters
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -445,9 +445,14 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, // put the command in a network queue and execute it later? if (_networking && !(cmd & CMD_DONT_NETWORK)) { - NetworkSendCommand(tile, p1, p2, cmd, callback); - _docommand_recursive = 0; - return true; + if (!(cmd & CMD_NET_INSTANT)) { + NetworkSendCommand(tile, p1, p2, cmd, callback); + _docommand_recursive = 0; + return true; + } else { + // Instant Command ... Relay and Process then + NetworkSendCommand(tile, p1, p2, cmd, callback); + } } // update last build coordinate of player. |