changeset 18592:3b4ef4e22e50 draft

(svn r23439) -Fix: Use the DEBUG macro to output the reason for a compile failure in info.nut instead of printing it directly to stderr
author yexo <yexo@openttd.org>
date Tue, 06 Dec 2011 15:09:02 +0000
parents f0908c52b846
children 3ad001cd8808
files src/script/squirrel.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -33,7 +33,7 @@
 	engine->crashed = true;
 	SQPrintFunc *func = engine->print_func;
 	if (func == NULL) {
-		scfprintf(stderr, _SC("%s"), buf);
+		DEBUG(misc, 0, "[Squirrel] Compile error: %s", SQ2OTTD(buf));
 	} else {
 		(*func)(true, buf);
 	}