(svn r7494) -Fix: Really disable AI's in Multiplayer if you tell it so. In loaded games with
authorDarkvater
Wed, 13 Dec 2006 22:38:45 +0000
changeset 5332 ffb2e98b961e
parent 5331 f581ed3807ef
child 5333 8e7d68b06399
(svn r7494) -Fix: Really disable AI's in Multiplayer if you tell it so. In loaded games with
AI's the setting didn't take effect, resulting in immediate desyncs.
ai/ai.c
--- a/ai/ai.c	Wed Dec 13 18:47:59 2006 +0000
+++ b/ai/ai.c	Wed Dec 13 22:38:45 2006 +0000
@@ -170,8 +170,8 @@
 	/* Don't do anything if ai is disabled */
 	if (!_ai.enabled) return;
 
-	/* Don't do anything if we are a network-client */
-	if (_networking && !_network_server) return;
+	/* Don't do anything if we are a network-client, or the AI has been disabled */
+	if (_networking && (!_network_server || !_patches.ai_in_multiplayer)) return;
 
 	/* New tick */
 	_ai.tick++;