2
0
Fork 0
mirror of https://github.com/Shpoike/Quakespasm.git synced 2025-03-11 20:40:55 +00:00

Don't autoplay next demo after a timedemo

This happened when starting the game
with either -fitz or cl_startdemos 1
and then executing 'timedemo demo1'
while a title demo was still playing
This commit is contained in:
Andrei Drexler 2022-04-02 11:50:10 +03:00 committed by Ozkan Sezer
parent f943e742dc
commit e6d65c5aa4

View file

@ -133,7 +133,7 @@ void Host_EndGame (const char *message, ...)
if (cls.state == ca_dedicated)
Sys_Error ("Host_EndGame: %s\n",string); // dedicated servers exit
if (cls.demonum != -1)
if (cls.demonum != -1 && !cls.timedemo)
CL_NextDemo ();
else
CL_Disconnect ();
@ -943,4 +943,3 @@ void Host_Shutdown(void)
LOC_Shutdown ();
}