]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
host: Make Host_Quit_f static. Avoid calling it directly.
[xonotic/darkplaces.git] / cl_demo.c
index 7c7874329c5bc0996dc964e0544f6232e8e42eb3..186174e9b506d4dc93b4bf260c5b98d9fc6b6d20 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -98,7 +98,7 @@ void CL_StopPlayback (void)
 
        if (!cls.demostarting) // only quit if not starting another demo
                if (Sys_CheckParm("-demo") || Sys_CheckParm("-capturedemo"))
-                       Host_Quit_f(&cmd_client);
+                       host.state = host_shutdown;
 
 }
 
@@ -579,11 +579,11 @@ static void CL_FinishTimeDemo (void)
                                }
                                Z_Free(history);
                                history = NULL;
-                               Host_Quit_f(&cmd_client);
+                               host.state = host_shutdown;
                        }
                }
                else
-                       Host_Quit_f(&cmd_client);
+                       host.state = host_shutdown;
        }
 }