mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-03 21:52:40 +00:00
K_PlayerForfeit on I_Quit
(I believe these are the only i_systems that matter?)
This commit is contained in:
parent
d907158b12
commit
217f61897f
3 changed files with 19 additions and 0 deletions
|
|
@ -59,6 +59,8 @@
|
|||
#include "../z_zone.h"
|
||||
#include "../g_input.h"
|
||||
|
||||
#include "../k_pwrlv.h"
|
||||
|
||||
#include "../console.h"
|
||||
|
||||
#ifdef __GNUG__
|
||||
|
|
@ -618,6 +620,11 @@ void I_Quit (void)
|
|||
#ifndef NONET
|
||||
D_SaveBan(); // save the ban list
|
||||
#endif
|
||||
|
||||
// Make sure you lose points for ALT-F4
|
||||
if (Playing())
|
||||
K_PlayerForfeit(consoleplayer, true);
|
||||
|
||||
G_SaveGameData(); // Tails 12-08-2002
|
||||
if (demorecording)
|
||||
G_CheckDemoStatus();
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ static char returnWadPath[256];
|
|||
#include "../d_net.h"
|
||||
#include "../g_game.h"
|
||||
#include "../filesrch.h"
|
||||
#include "../k_pwrlv.h"
|
||||
#include "endtxt.h"
|
||||
#include "sdlmain.h"
|
||||
|
||||
|
|
@ -3056,6 +3057,11 @@ void I_Quit(void)
|
|||
#ifndef NONET
|
||||
D_SaveBan(); // save the ban list
|
||||
#endif
|
||||
|
||||
// Make sure you lose points for ALT-F4
|
||||
if (Playing())
|
||||
K_PlayerForfeit(consoleplayer, true);
|
||||
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ static char returnWadPath[256];
|
|||
#include "../d_net.h"
|
||||
#include "../g_game.h"
|
||||
#include "../filesrch.h"
|
||||
#include "../k_pwrlv.h"
|
||||
#include "endtxt.h"
|
||||
#include "sdlmain.h"
|
||||
|
||||
|
|
@ -2977,6 +2978,11 @@ void I_Quit(void)
|
|||
#ifndef NONET
|
||||
D_SaveBan(); // save the ban list
|
||||
#endif
|
||||
|
||||
// Make sure you lose points for ALT-F4
|
||||
if (Playing())
|
||||
K_PlayerForfeit(consoleplayer, true);
|
||||
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue