From 7c4e9dd71d6f02f686c52551ccdcc27b89ef8025 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 6 Sep 2014 17:30:33 +0000 Subject: (svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD --- src/script/script_info_dummy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/script_info_dummy.cpp') diff --git a/src/script/script_info_dummy.cpp b/src/script/script_info_dummy.cpp index b70032f44..79190c82d 100644 --- a/src/script/script_info_dummy.cpp +++ b/src/script/script_info_dummy.cpp @@ -41,7 +41,7 @@ void Script_CreateDummyInfo(HSQUIRRELVM vm, const char *type, const char *dir) dp += seprintf(dp, lastof(dummy_script), "function CreateInstance() { return \"Dummy%s\"; }\n", type); dp += seprintf(dp, lastof(dummy_script), "} RegisterDummy%s(Dummy%s());\n", type, type); - const SQChar *sq_dummy_script = OTTD2SQ(dummy_script); + const SQChar *sq_dummy_script = dummy_script; sq_pushroottable(vm); @@ -97,7 +97,7 @@ void Script_CreateDummy(HSQUIRRELVM vm, StringID string, const char *type) /* 3) We translate the error message in the character format that Squirrel wants. * We can use the fact that the wchar string printing also uses %s to print * old style char strings, which is what was generated during the script generation. */ - const SQChar *sq_dummy_script = OTTD2SQ(dummy_script); + const SQChar *sq_dummy_script = dummy_script; /* And finally we load and run the script */ sq_pushroottable(vm); -- cgit v1.2.3-54-g00ecf