command.c
changeset 213 770e504a6e51
parent 193 0a7025304867
child 215 a829221214b5
--- a/command.c	Sun Sep 12 14:20:43 2004 +0000
+++ b/command.c	Sun Sep 12 15:29:37 2004 +0000
@@ -445,9 +445,14 @@
 
 	// 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.