Merge branch 'fix-endsign-rng' into 'master'

Fix ending sign RNG off by one error + comment for __internal_prng_bound__

See merge request KartKrew/RingRacers!78
This commit is contained in:
Eidolon 2025-02-13 21:15:07 +00:00
commit ef5eb2238e
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ ATTRINLINE static UINT32 FUNCINLINE __internal_prng__(pr_class_t pr_class)
/** Provides a random number within a specified range. /** Provides a random number within a specified range.
* *
* \return A random, uniformly distributed number from [0,bound]. * \return A random, uniformly distributed integer from [0,bound).
*/ */
ATTRINLINE static UINT32 FUNCINLINE __internal_prng_bound__(pr_class_t pr_class, UINT32 bound) ATTRINLINE static UINT32 FUNCINLINE __internal_prng_bound__(pr_class_t pr_class, UINT32 bound)
{ {

View file

@ -8844,7 +8844,7 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
if (plistlen > 1) if (plistlen > 1)
{ {
// Pick another player in the server! // Pick another player in the server!
plistlen = P_RandomKey(PR_SPARKLE, plistlen+1); plistlen = P_RandomKey(PR_SPARKLE, plistlen);
} }
else else
{ {