mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +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)
|
static FORCE_INLINE int32_t krand(void)
|
||||||
{
|
{
|
||||||
randomseed = (randomseed * 1664525ul) + 221297ul;
|
randomseed = (randomseed * 1664525ul) + 221297ul;
|
||||||
return FixedToInt(randomseed);
|
return ((uint32_t) randomseed)>>16;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int32_t krand(void);
|
int32_t krand(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue