Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server-testcase / framework.qc
1 void LOG_TRACE(string s, ...) = #25;
2 string ftos(float f) = #26;
3 string vtos(vector v) = #27;
4 void error(string e) = #10;
5 float test();
6
7 spawnfunc(worldspawn)
8 {
9         float r;
10         LOG_TRACE("TESTCASE: START");
11         r = test();
12         if(r == 1)
13                 error("TESTCASE: PASS");
14         else if(r == 0)
15                 error("TESTCASE: FAIL");
16         else
17                 error("TESTCASE: INVALID");
18 }