mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-10 09:41:09 +00:00
Host_Startdemos_f: set cls.demonum to -1 in the default case where we skip the demo loop.
Fixes a bug where if you launched QS and immediately did "playdemo [something]", after the demo finished, demo1.dem would start to play instead of returning to the console. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1146 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
6afd1e5286
commit
e26923ec8a
1 changed files with 1 additions and 0 deletions
|
@ -2086,6 +2086,7 @@ void Host_Startdemos_f (void)
|
||||||
if (!fitzmode)
|
if (!fitzmode)
|
||||||
{ /* QuakeSpasm customization: */
|
{ /* QuakeSpasm customization: */
|
||||||
/* go straight to menu, no CL_NextDemo */
|
/* go straight to menu, no CL_NextDemo */
|
||||||
|
cls.demonum = -1;
|
||||||
Cbuf_InsertText("menu_main\n");
|
Cbuf_InsertText("menu_main\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue