summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_list.cpp4
-rw-r--r--src/script/api/script_log.cpp2
-rw-r--r--src/script/api/script_order.cpp2
-rw-r--r--src/script/api/script_station.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp
index 37321fdcf..70f07a9a3 100644
--- a/src/script/api/script_list.cpp
+++ b/src/script/api/script_list.cpp
@@ -445,7 +445,7 @@ int32 ScriptList::Begin()
int32 ScriptList::Next()
{
if (this->initialized == false) {
- DEBUG(ai, 0, "Next() is invalid as Begin() is never called");
+ DEBUG(script, 0, "Next() is invalid as Begin() is never called");
return 0;
}
return this->sorter->Next();
@@ -459,7 +459,7 @@ bool ScriptList::IsEmpty()
bool ScriptList::IsEnd()
{
if (this->initialized == false) {
- DEBUG(ai, 0, "IsEnd() is invalid as Begin() is never called");
+ DEBUG(script, 0, "IsEnd() is invalid as Begin() is never called");
return true;
}
return this->sorter->IsEnd();
diff --git a/src/script/api/script_log.cpp b/src/script/api/script_log.cpp
index 26eca7475..f774c5d25 100644
--- a/src/script/api/script_log.cpp
+++ b/src/script/api/script_log.cpp
@@ -74,7 +74,7 @@
}
/* Also still print to debug window */
- DEBUG(ai, level, "[%d] [%c] %s", (uint)_current_company, logc, log->lines[log->pos]);
+ DEBUG(script, level, "[%d] [%c] %s", (uint)_current_company, logc, log->lines[log->pos]);
InvalidateWindowData(WC_AI_DEBUG, 0, _current_company);
}
diff --git a/src/script/api/script_order.cpp b/src/script/api/script_order.cpp
index a7ea14ce3..4a500a5ff 100644
--- a/src/script/api/script_order.cpp
+++ b/src/script/api/script_order.cpp
@@ -557,7 +557,7 @@ static void _DoCommandReturnSetOrderFlags(class ScriptInstance *instance)
/* Make sure we don't go into an infinite loop */
int retry = ScriptObject::GetCallbackVariable(3) - 1;
if (retry < 0) {
- DEBUG(ai, 0, "Possible infinite loop in SetOrderFlags() detected");
+ DEBUG(script, 0, "Possible infinite loop in SetOrderFlags() detected");
return false;
}
ScriptObject::SetCallbackVariable(3, retry);
diff --git a/src/script/api/script_station.cpp b/src/script/api/script_station.cpp
index d848ebe66..c4fd8274f 100644
--- a/src/script/api/script_station.cpp
+++ b/src/script/api/script_station.cpp
@@ -51,7 +51,7 @@
/* static */ int32 ScriptStation::GetCoverageRadius(ScriptStation::StationType station_type)
{
if (station_type == STATION_AIRPORT) {
- DEBUG(ai, 0, "GetCoverageRadius(): coverage radius of airports needs to be requested via ScriptAirport::GetAirportCoverageRadius(), as it requires AirportType");
+ DEBUG(script, 0, "GetCoverageRadius(): coverage radius of airports needs to be requested via ScriptAirport::GetAirportCoverageRadius(), as it requires AirportType");
return -1;
}
if (!HasExactlyOneBit(station_type)) return -1;