X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=tests%2Ffieldparams.qc;h=eed2ed614c0234013d477addd59caa79f1afa6e8;hb=0e392f91d288017fef146f020d1166a501f5bcdf;hp=9ca71d6a9c351c85c2790d3407a4b35427e61d39;hpb=990dcb106a86ae880f55471412ff51356d56465c;p=xonotic%2Fgmqcc.git 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"); };