]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/uninit.qc
Implemented length operator. This closes #130
[xonotic/gmqcc.git] / tests / uninit.qc
1 vector main(float a, vector vin) {
2     vector v;
3
4     if (a < 4) {
5         v = vin;
6         v_x += 1;
7         v_y += 1;
8         v_z += 1;
9         return v;
10     }
11     else if (a < 5) {
12         v_x = 3;
13         v_y = 3;
14 #ifdef UNINIT
15         print(vtos(v), "\n");
16 #endif
17         v_z = 3;
18         return v;
19     }
20     return '0 0 0';
21 }