mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Disable bot controls after sprint map finish (resolves !260)
This commit is contained in:
		
							parent
							
								
									30f60585be
								
							
						
					
					
						commit
						12563d254a
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1292,6 +1292,12 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
 | 
			
		|||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (player->exiting && ((mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE) == LF_SECTIONRACE))
 | 
			
		||||
	{
 | 
			
		||||
		// Sprint map finish, don't give Sal's children migraines trying to pathfind out
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	botController = K_FindBotController(player->mo);
 | 
			
		||||
	if (botController == NULL)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue