summaryrefslogtreecommitdiff
path: root/src/script/script_scanner.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-01 12:04:10 +0000
committertruebrain <truebrain@openttd.org>2011-12-01 12:04:10 +0000
commita8b22e5292e5b0e47a7dbecf47e530f877624ecf (patch)
tree73e78e63639615b579436a0d6df3df4eb0ab3391 /src/script/script_scanner.cpp
parentfedeba5f0021217ce23fbe106b31687cbeb643ce (diff)
downloadopenttd-a8b22e5292e5b0e47a7dbecf47e530f877624ecf.tar.xz
(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')
Diffstat (limited to 'src/script/script_scanner.cpp')
-rw-r--r--src/script/script_scanner.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/script/script_scanner.cpp b/src/script/script_scanner.cpp
index 57e412150..0f572a7c0 100644
--- a/src/script/script_scanner.cpp
+++ b/src/script/script_scanner.cpp
@@ -116,7 +116,7 @@ void ScriptScanner::RegisterScript(ScriptInfo *info)
/* Check if GetShortName follows the rules */
if (strlen(info->GetShortName()) != 4) {
- DEBUG(ai, 0, "The script '%s' returned a string from GetShortName() which is not four characaters. Unable to load the script.", info->GetName());
+ DEBUG(script, 0, "The script '%s' returned a string from GetShortName() which is not four characaters. Unable to load the script.", info->GetName());
delete info;
return;
}
@@ -133,10 +133,10 @@ void ScriptScanner::RegisterScript(ScriptInfo *info)
return;
}
- DEBUG(ai, 1, "Registering two scripts with the same name and version");
- DEBUG(ai, 1, " 1: %s", this->info_list[script_name]->GetMainScript());
- DEBUG(ai, 1, " 2: %s", info->GetMainScript());
- DEBUG(ai, 1, "The first is taking precedence.");
+ DEBUG(script, 1, "Registering two scripts with the same name and version");
+ DEBUG(script, 1, " 1: %s", this->info_list[script_name]->GetMainScript());
+ DEBUG(script, 1, " 2: %s", info->GetMainScript());
+ DEBUG(script, 1, "The first is taking precedence.");
delete info;
return;