diff options
author | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-25 19:17:03 +0000 |
commit | 4625695653c3c0be16b61b640c206c557af9ec7b (patch) | |
tree | d480693e848eb121add7037faa150875d750cc98 /src/ai/ai.cpp | |
parent | 6ea832ec7cbd572c72e96a179bb8c744834ee2e7 (diff) | |
download | openttd-4625695653c3c0be16b61b640c206c557af9ec7b.tar.xz |
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
Diffstat (limited to 'src/ai/ai.cpp')
-rw-r--r-- | src/ai/ai.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai.cpp b/src/ai/ai.cpp index 5e7330eb1..e48c8ef00 100644 --- a/src/ai/ai.cpp +++ b/src/ai/ai.cpp @@ -154,7 +154,7 @@ static void AI_RunTick(PlayerID player) 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 @@ void AI_RunGameLoop() 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++; |