]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/prandom.qc
Apply some minor updates from recent code cleanups
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / prandom.qc
index 2281bba19156a966831a2ca79b53302a8846e64f..12e4e0ea5a23c365a5c8b23a4f6b9fdb09045a84 100644 (file)
@@ -1,10 +1,7 @@
-#if defined(CSQC)
-       #include "../dpdefs/csprogsdefs.qh"
-       #include "../warpzonelib/mathlib.qh"
-       #include "prandom.qh"
-#elif defined(MENUQC)
-#elif defined(SVQC)
-#endif
+#include "prandom.qh"
+#include "_all.qh"
+
+#include "../warpzonelib/mathlib.qh"
 
 // prandom - PREDICTABLE random number generator (not seeded yet)
 
@@ -29,9 +26,9 @@ vector prandomvec()
 
        do
        {
-               v_x = prandom();
-               v_y = prandom();
-               v_z = prandom();
+               v.x = prandom();
+               v.y = prandom();
+               v.z = prandom();
        }
        while(v * v > 1);