diff options
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_core.cpp | 4 | ||||
-rw-r--r-- | src/ai/ai_info.cpp | 2 | ||||
-rw-r--r-- | src/ai/ai_instance.cpp | 2 | ||||
-rw-r--r-- | src/ai/ai_scanner.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp index 0b02170a6..ac2f00f65 100644 --- a/src/ai/ai_core.cpp +++ b/src/ai/ai_core.cpp @@ -184,7 +184,7 @@ for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) { if (_settings_game.ai_config[c] != NULL && _settings_game.ai_config[c]->HasScript()) { if (!_settings_game.ai_config[c]->ResetInfo(true)) { - DEBUG(ai, 0, "After a reload, the AI by the name '%s' was no longer found, and removed from the list.", _settings_game.ai_config[c]->GetName()); + DEBUG(script, 0, "After a reload, the AI by the name '%s' was no longer found, and removed from the list.", _settings_game.ai_config[c]->GetName()); _settings_game.ai_config[c]->Change(NULL); if (Company::IsValidAiID(c)) { /* The code belonging to an already running AI was deleted. We can only do @@ -201,7 +201,7 @@ } if (_settings_newgame.ai_config[c] != NULL && _settings_newgame.ai_config[c]->HasScript()) { if (!_settings_newgame.ai_config[c]->ResetInfo(false)) { - DEBUG(ai, 0, "After a reload, the AI by the name '%s' was no longer found, and removed from the list.", _settings_newgame.ai_config[c]->GetName()); + DEBUG(script, 0, "After a reload, the AI by the name '%s' was no longer found, and removed from the list.", _settings_newgame.ai_config[c]->GetName()); _settings_newgame.ai_config[c]->Change(NULL); } } diff --git a/src/ai/ai_info.cpp b/src/ai/ai_info.cpp index 0ce4f5297..83bae7aad 100644 --- a/src/ai/ai_info.cpp +++ b/src/ai/ai_info.cpp @@ -89,7 +89,7 @@ template <> const char *GetClassName<AIInfo, ST_AI>() { return "AIInfo"; } if (info->engine->MethodExists(*info->SQ_instance, "GetAPIVersion")) { if (!info->engine->CallStringMethodStrdup(*info->SQ_instance, "GetAPIVersion", &info->api_version, MAX_GET_OPS)) return SQ_ERROR; if (!CheckAPIVersion(info->api_version)) { - DEBUG(ai, 1, "Loading info.nut from (%s.%d): GetAPIVersion returned invalid version", info->GetName(), info->GetVersion()); + DEBUG(script, 1, "Loading info.nut from (%s.%d): GetAPIVersion returned invalid version", info->GetName(), info->GetVersion()); return SQ_ERROR; } } else { diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index e3375a0ba..446f06756 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -205,7 +205,7 @@ bool AIInstance::LoadCompatibilityScripts(const char *api_version) if (this->engine->LoadScript(buf)) return true; ScriptLog::Error("Failed to load API compatibility script"); - DEBUG(ai, 0, "Error compiling / running API compatibility script: %s", buf); + DEBUG(script, 0, "Error compiling / running API compatibility script: %s", buf); return false; } diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp index 25d38ccdb..f903061e4 100644 --- a/src/ai/ai_scanner.cpp +++ b/src/ai/ai_scanner.cpp @@ -67,7 +67,7 @@ AIInfo *AIScannerInfo::SelectRandomAI() const } if (num_random_ais == 0) { - DEBUG(ai, 0, "No suitable AI found, loading 'dummy' AI."); + DEBUG(script, 0, "No suitable AI found, loading 'dummy' AI."); return this->info_dummy; } |