From dd42d07d2a268e836bfcbc70f73764c454637822 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 13 Dec 2006 22:38:45 +0000 Subject: [PATCH] (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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/ai.c b/ai/ai.c index 8068227d08..f06ba06f6c 100644 --- a/ai/ai.c +++ b/ai/ai.c @@ -170,8 +170,8 @@ void AI_RunGameLoop(void) /* 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++;