mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 11:50:49 +00:00
- Fix broken krand()
follow changes in 1354d52c05
due to truncation occuring from FixedToInt()
inline function.
Very very sorry... :'( Fixes #321.
This commit is contained in:
parent
d6b80bda52
commit
72771aeb40
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ int32_t checksectorpointer(int16_t i, int16_t sectnum);
|
|||
static FORCE_INLINE int32_t krand(void)
|
||||
{
|
||||
randomseed = (randomseed * 1664525ul) + 221297ul;
|
||||
return FixedToInt(randomseed);
|
||||
return ((uint32_t) randomseed)>>16;
|
||||
}
|
||||
#else
|
||||
int32_t krand(void);
|
||||
|
|
Loading…
Reference in a new issue