fixed CParticle crash && RandTable

implemented PC codewarrior rand
updated premake
This commit is contained in:
Fire-Head 2019-05-31 00:49:06 +03:00
parent 2bf6674afc
commit 3ef6029764
9 changed files with 39 additions and 15 deletions

View file

@ -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);