mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Rework the conditions for the previous commit
- The "never force a retry" condition is now `!G_GametypeUsesLives()` - In GT_SPECIAL *and* GT_VERSUS, check for K_IsPlayerLosing before retry, instead of bespoke check
This commit is contained in:
		
							parent
							
								
									39e68d1ae3
								
							
						
					
					
						commit
						a86ed5c6cb
					
				
					 1 changed files with 4 additions and 8 deletions
				
			
		
							
								
								
									
										12
									
								
								src/g_game.c
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								src/g_game.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2917,20 +2917,16 @@ void G_ExitLevel(void)
 | 
			
		|||
		UINT8 i;
 | 
			
		||||
		boolean doretry = false;
 | 
			
		||||
 | 
			
		||||
		if (modeattacking != ATTACKING_NONE)
 | 
			
		||||
			;
 | 
			
		||||
		else if (specialstageinfo.valid == true)
 | 
			
		||||
		{
 | 
			
		||||
			doretry = (specialstageinfo.ufo != NULL);
 | 
			
		||||
		}
 | 
			
		||||
		else if (gametyperules & GTR_BOSS)
 | 
			
		||||
		if (!G_GametypeUsesLives())
 | 
			
		||||
			; // never force a retry
 | 
			
		||||
		else if (specialstageinfo.valid == true || (gametyperules & GTR_BOSS)
 | 
			
		||||
		{
 | 
			
		||||
			doretry = true;
 | 
			
		||||
			for (i = 0; i < MAXPLAYERS; i++)
 | 
			
		||||
			{
 | 
			
		||||
				if (playeringame[i] && !players[i].spectator && !players[i].bot)
 | 
			
		||||
				{
 | 
			
		||||
					if (players[i].bumpers > 0)
 | 
			
		||||
					if (!K_IsPlayerLosing(&players[i]))
 | 
			
		||||
					{
 | 
			
		||||
						doretry = false;
 | 
			
		||||
						break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue