diff --git a/include/QF/mathlib.h b/include/QF/mathlib.h index 08c7f9a0e..ff6ccb5a7 100644 --- a/include/QF/mathlib.h +++ b/include/QF/mathlib.h @@ -62,7 +62,7 @@ extern int nanmask; #define VectorDistance(a, b) sqrt(VectorDistance_fast(a, b)) -#define qfrandom(MAX) ((float) MAX * (rand() / (RAND_MAX + 1.0))) +#define qfrandom(MAX) ((float) MAX * (rand() * (1.0 / (RAND_MAX + 1.0)))) // up / down #define PITCH 0