mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Save ban list right after banning.
This commit is contained in:
		
							parent
							
								
									a1df64a365
								
							
						
					
					
						commit
						5e2cea3980
					
				
					 5 changed files with 3 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -2725,7 +2725,10 @@ static void Command_Ban(void)
 | 
			
		|||
		else
 | 
			
		||||
		{
 | 
			
		||||
			if (server) // only the server is allowed to do this right now
 | 
			
		||||
			{
 | 
			
		||||
				Ban_Add(COM_Argv(2));
 | 
			
		||||
				D_SaveBan(); // save the ban list
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (COM_Argc() == 2)
 | 
			
		||||
			{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -615,9 +615,6 @@ void I_Quit (void)
 | 
			
		|||
	//added:16-02-98: when recording a demo, should exit using 'q' key,
 | 
			
		||||
	//        but sometimes we forget and use 'F10'.. so save here too.
 | 
			
		||||
	M_SaveConfig (NULL);   //save game config, cvars..
 | 
			
		||||
#ifndef NONET
 | 
			
		||||
	D_SaveBan(); // save the ban list
 | 
			
		||||
#endif
 | 
			
		||||
	G_SaveGameData(); // Tails 12-08-2002
 | 
			
		||||
	if (demorecording)
 | 
			
		||||
		G_CheckDemoStatus();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3054,9 +3054,6 @@ void I_Quit(void)
 | 
			
		|||
	quiting = SDL_FALSE;
 | 
			
		||||
	I_ShutdownConsole();
 | 
			
		||||
	M_SaveConfig(NULL); //save game config, cvars..
 | 
			
		||||
#ifndef NONET
 | 
			
		||||
	D_SaveBan(); // save the ban list
 | 
			
		||||
#endif
 | 
			
		||||
	G_SaveGameData(false); // Tails 12-08-2002
 | 
			
		||||
	//added:16-02-98: when recording a demo, should exit using 'q' key,
 | 
			
		||||
	//        but sometimes we forget and use 'F10'.. so save here too.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2975,9 +2975,6 @@ void I_Quit(void)
 | 
			
		|||
	quiting = SDL_FALSE;
 | 
			
		||||
	I_ShutdownConsole();
 | 
			
		||||
	M_SaveConfig(NULL); //save game config, cvars..
 | 
			
		||||
#ifndef NONET
 | 
			
		||||
	D_SaveBan(); // save the ban list
 | 
			
		||||
#endif
 | 
			
		||||
	G_SaveGameData(); // Tails 12-08-2002
 | 
			
		||||
	//added:16-02-98: when recording a demo, should exit using 'q' key,
 | 
			
		||||
	//        but sometimes we forget and use 'F10'.. so save here too.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -639,9 +639,6 @@ void I_Error(const char *error, ...)
 | 
			
		|||
	if (!errorcount)
 | 
			
		||||
	{
 | 
			
		||||
		M_SaveConfig(NULL); // save game config, cvars..
 | 
			
		||||
#ifndef NONET
 | 
			
		||||
		D_SaveBan(); // save the ban list
 | 
			
		||||
#endif
 | 
			
		||||
		G_SaveGameData();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue