From 68d43b4bc5d61def8619cc0e9419293cda746521 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Tue, 26 Jun 2012 14:36:40 +0200 Subject: [PATCH] Use randk() instead of rand() --- src/header/local.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/header/local.h b/src/header/local.h index 29a3771..576434c 100644 --- a/src/header/local.h +++ b/src/header/local.h @@ -505,8 +505,8 @@ extern edict_t *g_edicts; #define LLOFS(x) (size_t)&(((level_locals_t *)NULL)->x) #define CLOFS(x) (size_t)&(((gclient_t *)NULL)->x) -#define random() ((rand () & 0x7fff) / ((float)0x7fff)) -#define crandom() (2.0 * (random() - 0.5)) +#define random() ((randk() & 0x7fff) / ((float)0x7fff)) +#define crandom() (2.0 * (random() - 0.5)) extern cvar_t *maxentities; extern cvar_t *deathmatch;