]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
added -demo and -demolooponly options. -demo starts the wanted demo and then shuts...
[xonotic/darkplaces.git] / cl_demo.c
index e9236ce823bc63a974319013059b2f2b4cf9bc9d..cdf8209cfa086e15278ac48e504f4c034d3da167 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -86,6 +86,10 @@ void CL_StopPlayback (void)
 
        if (cls.timedemo)
                CL_FinishTimeDemo ();
+
+       if (COM_CheckParm("-demo") || COM_CheckParm("-demolooponly"))
+               Host_Quit_f();
+
 }
 
 /*