]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server-testcase/framework.qc
Don't play speaker sounds globally if they have the loop flag (possible fix for Q3...
[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 }