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:
Eric Wasylishen 2014-12-08 19:30:30 +00:00
parent 6afd1e5286
commit e26923ec8a

View file

@ -2086,6 +2086,7 @@ void Host_Startdemos_f (void)
if (!fitzmode)
{ /* QuakeSpasm customization: */
/* go straight to menu, no CL_NextDemo */
cls.demonum = -1;
Cbuf_InsertText("menu_main\n");
return;
}