]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
some vector tests
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 10:56:34 +0000 (12:56 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 10:56:34 +0000 (12:56 +0200)
data/vars.qc

index 19ba392a4287eb07aaf926e8cd9e57e3065ca9c4..55b4ce230db75cdc82a3415b717096db3d6aadcc 100644 (file)
@@ -9,6 +9,7 @@ entity()            spawn  = #3;
 void(entity)        kill   = #4;
 
 float multi, decla, ration;
+.vector memvec;
 
 .void(string x) printit;
 
@@ -29,8 +30,11 @@ void(vector par) vecpar = {
 
 void() main = {
     local entity pawn;
+    local vector foovec;
     print3("should be 1: ", ftos(dot('1 1 0', '1 0 0')), "\n");
 
+    foovec = '3 4 5';
+    foovec_y = 9;
     pawn = spawn();
     pawn.printit = myprintit;
     pawn.printit("Hello");