mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	M_CupSelectHandler: small code cleanup done while writing the previous commit
This commit is contained in:
		
							parent
							
								
									956c156e41
								
							
						
					
					
						commit
						38258fc40a
					
				
					 1 changed files with 12 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -265,12 +265,21 @@ void M_CupSelectHandler(INT32 choice)
 | 
			
		|||
 | 
			
		||||
		M_SetMenuDelay(pid);
 | 
			
		||||
 | 
			
		||||
		if (!newcup)
 | 
			
		||||
		{
 | 
			
		||||
			S_StartSound(NULL, sfx_s3kb2);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		levellist.levelsearch.cup = newcup;
 | 
			
		||||
		count = M_CountLevelsToShowInList(&levellist.levelsearch);
 | 
			
		||||
 | 
			
		||||
		if ((!newcup)
 | 
			
		||||
			|| (count == 0)
 | 
			
		||||
			|| (cupgrid.grandprix == true && newcup->cachedlevels[0] == NEXTMAP_INVALID))
 | 
			
		||||
		if (count == 0
 | 
			
		||||
			|| (
 | 
			
		||||
				cupgrid.grandprix == true
 | 
			
		||||
				&& newcup->cachedlevels[0] == NEXTMAP_INVALID
 | 
			
		||||
			)
 | 
			
		||||
		)
 | 
			
		||||
		{
 | 
			
		||||
			S_StartSound(NULL, sfx_s3kb2);
 | 
			
		||||
			return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue