(svn r9459) [NoAI] -Fix: make the CompileErrors go via DEBUG() too noai
authortruelight
Sun, 25 Mar 2007 21:27:54 +0000
branchnoai
changeset 9537 0e2d03bb4fcf
parent 9536 4b75532dcd3e
child 9538 dc2378f254a5
(svn r9459) [NoAI] -Fix: make the CompileErrors go via DEBUG() too
src/squirrel.cpp
--- a/src/squirrel.cpp	Sun Mar 25 21:22:34 2007 +0000
+++ b/src/squirrel.cpp	Sun Mar 25 21:27:54 2007 +0000
@@ -12,15 +12,15 @@
 void Squirrel::CompileError(HSQUIRRELVM vm, const SQChar *desc, const SQChar *source, SQInteger line, SQInteger column)
 {
 #ifdef _SQ64
-	scprintf(_SC("Error %s:%ld/%ld: %s\n"), source, line, column, desc);
+	DEBUG(misc, 0, "Error %s:%ld/%ld: %s", source, line, column, desc);
 #else
-	scprintf(_SC("Error %s:%d/%d: %s\n"), source, line, column, desc);
+	DEBUG(misc, 0, "Error %s:%d/%d: %s", source, line, column, desc);
 #endif
 }
 
 void Squirrel::RunError(HSQUIRRELVM vm, const char *error)
 {
-	DEBUG(ai, 0, "Your script made an error: %s\n", error);
+	DEBUG(misc, 0, "Your script made an error: %s\n", error);
 }
 
 SQInteger Squirrel::_RunError(HSQUIRRELVM vm)