mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Staffsync excludes many RNG classes
This commit is contained in:
		
							parent
							
								
									667ad18339
								
							
						
					
					
						commit
						3d16ecd7e9
					
				
					 1 changed files with 18 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -305,14 +305,30 @@ boolean G_ConsiderEndingDemoRead(void)
 | 
			
		|||
// Demo failed sync during a sync test! Log the failure to be reported later.
 | 
			
		||||
static boolean G_FailStaffSync(staffsync_reason_t reason, UINT32 extra)
 | 
			
		||||
{
 | 
			
		||||
	if (demo.attract != DEMO_ATTRACT_OFF) // Don't shout about RNG desyncs in titledemos
 | 
			
		||||
		return false;
 | 
			
		||||
 | 
			
		||||
	if (!staffsync)
 | 
			
		||||
		return true;
 | 
			
		||||
 | 
			
		||||
	if (staffsync_results[staffsync_failed].reason != 0)
 | 
			
		||||
		return false;
 | 
			
		||||
 | 
			
		||||
	if (reason == SYNC_RNG && extra == PR_ITEM_DEBRIS)
 | 
			
		||||
		return false;
 | 
			
		||||
	if (reason == SYNC_RNG)
 | 
			
		||||
	{
 | 
			
		||||
		switch (extra)
 | 
			
		||||
		{
 | 
			
		||||
			case PR_ITEM_DEBRIS:
 | 
			
		||||
			case PR_RANDOMAUDIENCE:
 | 
			
		||||
			case PR_VOICES:
 | 
			
		||||
			case PR_DECORATION:
 | 
			
		||||
			case PR_RANDOMANIM:
 | 
			
		||||
				CONS_Printf("[!] Ignored desync from RNG class %d\n", extra);
 | 
			
		||||
				return false;
 | 
			
		||||
			default:
 | 
			
		||||
				break;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	staffsync_results[staffsync_failed].map = gamemap;
 | 
			
		||||
	memcpy(&staffsync_results[staffsync_failed].name, player_names[consoleplayer], sizeof(player_names[consoleplayer]));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue