From 3ef6029764cfcba7e73bf62c19addbe1732480b8 Mon Sep 17 00:00:00 2001 From: Fire-Head Date: Fri, 31 May 2019 00:49:06 +0300 Subject: fixed CParticle crash && RandTable implemented PC codewarrior rand updated premake --- src/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index a82e4c7f..47dd13f2 100644 --- a/src/common.h +++ b/src/common.h @@ -145,6 +145,12 @@ inline float sq(float x) { return x*x; } #define DEGTORAD(x) ((x) * PI / 180.0f) #define RADTODEG(x) ((x) * 180.0f / PI) +#if USE_PS2_RAND == TRUE +#define MYRAND_MAX 65535 +#else +#define MYRAND_MAX 32767 +#endif + int myrand(void); void mysrand(unsigned int seed); -- cgit v1.2.3