diff options
author | rubidium <rubidium@openttd.org> | 2014-09-06 17:30:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-06 17:30:33 +0000 |
commit | 7c4e9dd71d6f02f686c52551ccdcc27b89ef8025 (patch) | |
tree | 7556a992183a12029525bf9ed3f6be8ced9d9dc8 /src/script/script_info_dummy.cpp | |
parent | 3f9525ff0ecb5a12ca8635b88691154c293c4d8f (diff) | |
download | openttd-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.cpp | 4 |
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); |