src/ai/ai.cpp
changeset 10703 2c998f3776d1
parent 10429 1b99254f9607
child 10707 81a4013a7680
--- a/src/ai/ai.cpp	Sun May 25 17:36:49 2008 +0000
+++ b/src/ai/ai.cpp	Sun May 25 19:17:03 2008 +0000
@@ -154,7 +154,7 @@
 	Player *p = GetPlayer(player);
 	_current_player = player;
 
-	if (_patches.ainew_active) {
+	if (_settings.ai.ainew_active) {
 		AiNewDoGameLoop(p);
 	} else {
 		/* Enable all kind of cheats the old AI needs in order to operate correctly... */
@@ -178,7 +178,7 @@
 	if (!_ai.enabled) 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;
+	if (_networking && (!_network_server || !_settings.ai.ai_in_multiplayer)) return;
 
 	/* New tick */
 	_ai.tick++;