diff options
author | yexo <yexo@openttd.org> | 2011-12-21 14:55:28 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-12-21 14:55:28 +0000 |
commit | 5988659eea20d3e84fdeadf448133e9b94e9630f (patch) | |
tree | 230c16eadf35e9868a3acf6d91b1b73ae412897d /src/script/api/squirrel_export.awk | |
parent | a55478aaa6453d62f9708ee03393711b2d3120ee (diff) | |
download | openttd-5988659eea20d3e84fdeadf448133e9b94e9630f.tar.xz |
(svn r23651) -Feature: [NoGo] GSText now accepts string arguments as parameters to the constructor
Diffstat (limited to 'src/script/api/squirrel_export.awk')
-rw-r--r-- | src/script/api/squirrel_export.awk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/script/api/squirrel_export.awk b/src/script/api/squirrel_export.awk index cb9774db7..7fcb5336a 100644 --- a/src/script/api/squirrel_export.awk +++ b/src/script/api/squirrel_export.awk @@ -341,7 +341,11 @@ BEGIN { print " SQ" api_cls ".PreRegister(engine, \"" api_super_cls "\");" } if (virtual_class == "false" && super_cls != "ScriptEvent") { - print " SQ" api_cls ".AddConstructor<void (" cls "::*)(" cls_param[0] "), " cls_param[1]">(engine, \"" cls_param[2] "\");" + if (cls_param[2] == "v") { + print " SQ" api_cls ".AddSQAdvancedConstructor(engine);" + } else { + print " SQ" api_cls ".AddConstructor<void (" cls "::*)(" cls_param[0] "), " cls_param[1]">(engine, \"" cls_param[2] "\");" + } } print "" |