summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-06 17:20:45 +0000
committerrubidium <rubidium@openttd.org>2014-09-06 17:20:45 +0000
commit7a00d2e8493913b3520e431b4e31b6688b3f79f5 (patch)
tree24771ee9d209d311747b3279bb0f27999af864b9 /src/script
parente76e6efd177c97d24062e82028174fc3c33c5600 (diff)
downloadopenttd-7a00d2e8493913b3520e431b4e31b6688b3f79f5.tar.xz
(svn r26769) -Codechange [Squirrel]: remove the difference between some platforms having wchar for SQChar and others just char; always use char (and UTF-8) like in the rest of (internal) OpenTTD
Diffstat (limited to 'src/script')
-rw-r--r--src/script/squirrel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp
index 9c101c7aa..c50a513f3 100644
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -31,7 +31,7 @@ void Squirrel::CompileError(HSQUIRRELVM vm, const SQChar *desc, const SQChar *so
{
SQChar buf[1024];
- scsnprintf(buf, lengthof(buf), _SC("Error %s:") SQ_PRINTF64 _SC("/") SQ_PRINTF64 _SC(": %s"), source, line, column, desc);
+ seprintf(buf, lastof(buf), "Error %s:" SQ_PRINTF64 "/" SQ_PRINTF64 ": %s", source, line, column, desc);
/* Check if we have a custom print function */
Squirrel *engine = (Squirrel *)sq_getforeignptr(vm);
@@ -70,7 +70,7 @@ void Squirrel::RunError(HSQUIRRELVM vm, const SQChar *error)
/* Check if we have a custom print function */
SQChar buf[1024];
- scsnprintf(buf, lengthof(buf), _SC("Your script made an error: %s\n"), error);
+ seprintf(buf, lastof(buf), "Your script made an error: %s\n", error);
Squirrel *engine = (Squirrel *)sq_getforeignptr(vm);
SQPrintFunc *func = engine->print_func;
if (func == NULL) {