]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/fieldparams.qc
Merge branch 'master' into cooking
[xonotic/gmqcc.git] / tests / fieldparams.qc
index 9ca71d6a9c351c85c2790d3407a4b35427e61d39..eed2ed614c0234013d477addd59caa79f1afa6e8 100644 (file)
@@ -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");
 };