summaryrefslogtreecommitdiff
path: root/src/script/script_info_dummy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-06 17:30:33 +0000
committerrubidium <rubidium@openttd.org>2014-09-06 17:30:33 +0000
commit7c4e9dd71d6f02f686c52551ccdcc27b89ef8025 (patch)
tree7556a992183a12029525bf9ed3f6be8ced9d9dc8 /src/script/script_info_dummy.cpp
parent3f9525ff0ecb5a12ca8635b88691154c293c4d8f (diff)
downloadopenttd-7c4e9dd71d6f02f686c52551ccdcc27b89ef8025.tar.xz
(svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD
Diffstat (limited to 'src/script/script_info_dummy.cpp')
-rw-r--r--src/script/script_info_dummy.cpp4
1 files changed, 2 insertions, 2 deletions
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);