(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.
This commit is contained in:
4
ai/ai.c
4
ai/ai.c
@@ -170,8 +170,8 @@ void AI_RunGameLoop(void)
|
|||||||
/* Don't do anything if ai is disabled */
|
/* Don't do anything if ai is disabled */
|
||||||
if (!_ai.enabled) return;
|
if (!_ai.enabled) return;
|
||||||
|
|
||||||
/* Don't do anything if we are a network-client */
|
/* Don't do anything if we are a network-client, or the AI has been disabled */
|
||||||
if (_networking && !_network_server) return;
|
if (_networking && (!_network_server || !_patches.ai_in_multiplayer)) return;
|
||||||
|
|
||||||
/* New tick */
|
/* New tick */
|
||||||
_ai.tick++;
|
_ai.tick++;
|
||||||
|
Reference in New Issue
Block a user