mirror of
https://github.com/DrBeef/Raze.git
synced 2025-04-01 21:50:51 +00:00
- restore original krand formula.
Note: The only game module actually using this is Duke/RR.
This commit is contained in:
parent
3971c8ffd2
commit
c4ea5cf336
1 changed files with 1 additions and 5 deletions
|
@ -407,15 +407,11 @@ inline int sectoradjacent(int sect1, int sect2) { return findwallbetweensectors(
|
|||
int32_t getsectordist(vec2_t const in, int const sectnum, vec2_t * const out = nullptr);
|
||||
extern const int16_t *chsecptr_onextwall;
|
||||
|
||||
#if !KRANDDEBUG
|
||||
inline int32_t krand(void)
|
||||
{
|
||||
randomseed = (randomseed * 1664525ul) + 221297ul;
|
||||
randomseed = (randomseed * 27584621) + 1;
|
||||
return ((uint32_t) randomseed)>>16;
|
||||
}
|
||||
#else
|
||||
int32_t krand(void);
|
||||
#endif
|
||||
|
||||
inline int32_t ksqrt(uint64_t num)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue