mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Save when quitting the game.
Also use default reason if not custom reason is given.
This commit is contained in:
parent
deb58b0e68
commit
512b001aa0
2 changed files with 6 additions and 0 deletions
|
|
@ -615,6 +615,9 @@ void I_Quit (void)
|
||||||
//added:16-02-98: when recording a demo, should exit using 'q' key,
|
//added:16-02-98: when recording a demo, should exit using 'q' key,
|
||||||
// but sometimes we forget and use 'F10'.. so save here too.
|
// but sometimes we forget and use 'F10'.. so save here too.
|
||||||
M_SaveConfig (NULL); //save game config, cvars..
|
M_SaveConfig (NULL); //save game config, cvars..
|
||||||
|
#ifndef NONET
|
||||||
|
D_SaveBan(); // save the ban list
|
||||||
|
#endif
|
||||||
G_SaveGameData(); // Tails 12-08-2002
|
G_SaveGameData(); // Tails 12-08-2002
|
||||||
if (demorecording)
|
if (demorecording)
|
||||||
G_CheckDemoStatus();
|
G_CheckDemoStatus();
|
||||||
|
|
|
||||||
|
|
@ -2282,6 +2282,9 @@ void I_Quit(void)
|
||||||
quiting = SDL_FALSE;
|
quiting = SDL_FALSE;
|
||||||
I_ShutdownConsole();
|
I_ShutdownConsole();
|
||||||
M_SaveConfig(NULL); //save game config, cvars..
|
M_SaveConfig(NULL); //save game config, cvars..
|
||||||
|
#ifndef NONET
|
||||||
|
D_SaveBan(); // save the ban list
|
||||||
|
#endif
|
||||||
G_SaveGameData(); // Tails 12-08-2002
|
G_SaveGameData(); // Tails 12-08-2002
|
||||||
//added:16-02-98: when recording a demo, should exit using 'q' key,
|
//added:16-02-98: when recording a demo, should exit using 'q' key,
|
||||||
// but sometimes we forget and use 'F10'.. so save here too.
|
// but sometimes we forget and use 'F10'.. so save here too.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue