X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftest.qc;h=966553b27228efa1aa1f277fb73a61e335deda1e;hb=ec0035789475e48a58a22df279c7cb1099454afd;hp=ac792a387ab4e2acfce3408d0e5c819c7b781ff3;hpb=9138acec2282209ac6867c5a34365cff3fb8fa64;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/test.qc b/qcsrc/common/test.qc index ac792a387..966553b27 100644 --- a/qcsrc/common/test.qc +++ b/qcsrc/common/test.qc @@ -1,3 +1,12 @@ +#if defined(CSQC) + #include "../dpdefs/csprogsdefs.qh" + #include "test.qh" +#elif defined(MENUQC) +#elif defined(SVQC) + #include "../dpdefs/dpextensions.qh" + #include "test.qh" +#endif + float TEST_failed; float TEST_ok; @@ -10,15 +19,14 @@ void TEST_Fail(string cond) void TEST_OK() { - TEST_ok = TRUE; + TEST_ok = true; } float TEST_RunAll() { - float f = 0; + int f = 0; float n = numentityfields(); - float i; - for(i = 0; i < n; ++i) + for(int i = 0; i < n; ++i) { string name = entityfieldname(i); if(substring(name, 0, 6) == "_TEST_")