mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	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:
		
						commit
						ef5eb2238e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -145,7 +145,7 @@ ATTRINLINE static UINT32 FUNCINLINE __internal_prng__(pr_class_t pr_class)
 | 
			
		|||
 | 
			
		||||
/** 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)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8844,7 +8844,7 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
 | 
			
		|||
								if (plistlen > 1)
 | 
			
		||||
								{
 | 
			
		||||
									// Pick another player in the server!
 | 
			
		||||
									plistlen = P_RandomKey(PR_SPARKLE, plistlen+1);
 | 
			
		||||
									plistlen = P_RandomKey(PR_SPARKLE, plistlen);
 | 
			
		||||
								}
 | 
			
		||||
								else
 | 
			
		||||
								{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue