X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Ffieldparams.qc;h=eed2ed614c0234013d477addd59caa79f1afa6e8;hp=9ca71d6a9c351c85c2790d3407a4b35427e61d39;hb=9f2b9e1b46c583d12796df8741bd9b448397b8cb;hpb=d1fd7d044ba1470dd6c66b1f265ec3aafb829b07 diff --git a/tests/fieldparams.qc b/tests/fieldparams.qc index 9ca71d6..eed2ed6 100644 --- a/tests/fieldparams.qc +++ b/tests/fieldparams.qc @@ -1,8 +1,6 @@ -void(string, string) print = #1; -entity() spawn = #3; - .string a; .string b; +..string ps; void(entity e, .string s) callout = { print(e.s, "\n"); @@ -14,4 +12,6 @@ void() main = { e.a = "foo"; e.b = "bar"; callout(e, b); + e.ps = a; + print(e.(e.ps), "\n"); };