mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 06:20:16 -04:00
do not show ENDOOM when recording a demo
This commit is contained in:
parent
ac9f7f0209
commit
743803b8bb
@ -320,10 +320,11 @@ int waitAtExit;
|
|||||||
//
|
//
|
||||||
|
|
||||||
static char errmsg[2048]; // buffer of error message -- killough
|
static char errmsg[2048]; // buffer of error message -- killough
|
||||||
|
static boolean was_demorecording = false;
|
||||||
|
|
||||||
void I_Quit (void)
|
void I_Quit (void)
|
||||||
{
|
{
|
||||||
if (!*errmsg)
|
if (!*errmsg && !was_demorecording)
|
||||||
I_EndDoom();
|
I_EndDoom();
|
||||||
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||||
@ -334,7 +335,10 @@ void I_Quit (void)
|
|||||||
void I_QuitFirst (void)
|
void I_QuitFirst (void)
|
||||||
{
|
{
|
||||||
if (demorecording)
|
if (demorecording)
|
||||||
|
{
|
||||||
|
was_demorecording = true;
|
||||||
G_CheckDemoStatus();
|
G_CheckDemoStatus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void I_QuitLast (void)
|
void I_QuitLast (void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user