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