summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/command.c b/command.c
index 5012c8919..35ca10ce5 100644
--- a/command.c
+++ b/command.c
@@ -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.