]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
menu: Don't abort the frame if the menu crashes during init, so video can start
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 17 Jul 2020 23:38:51 +0000 (23:38 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 17 Jul 2020 23:38:51 +0000 (23:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12836 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 028ea6a2d84a19f8eeb9b2d8a59a73f3ac2e23a7..6308f480b6ea93675234288520fcd5d8539cc402 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -5233,9 +5233,11 @@ void MVM_error_cmd(const char *format, ...)
        MR_SetRouting (true);
 
        // reset the active scene, too (to be on the safe side ;))
-   R_SelectScene( RST_CLIENT );
+       R_SelectScene( RST_CLIENT );
 
-       Host_AbortCurrentFrame();
+       // Let video start at least
+       if(host.state != host_init)
+               Host_AbortCurrentFrame();
 }
 
 static void MVM_begin_increase_edicts(prvm_prog_t *prog)