]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
host: Return to main() if the loop breaks and Sys_Quit from there
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12852 d7cf8633-e32d-0410-b094-e92efae38249

host.c
sys_sdl.c
sys_unix.c
sys_win.c

diff --git a/host.c b/host.c
index afa18ec2d8a5b357615b6aa2d650c6bd437afef6..fdffa60f8ac60f1a683ee039b861101d24d2ac90 100644 (file)
--- a/host.c
+++ b/host.c
@@ -515,7 +515,7 @@ void Host_Main(void)
                host.framecount++;
        }
 
-       Sys_Quit(0);
+       return;
 }
 
 //============================================================================
index 9285f55dadf29ba177c00ddec7beb718438f2ad2..e57bd669cfce35a14dd0b82396061521e1b5586b 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -222,6 +222,8 @@ int main (int argc, char *argv[])
 
        Host_Main();
 
+       Sys_Quit(0);
+       
        return 0;
 }
 
index 09929a3793af656f70fda90e4069fa270bc5281f..4837d3ad82353a1ef08838f8dd1b1a355cc715d8 100644 (file)
@@ -166,6 +166,8 @@ int main (int argc, char **argv)
 #endif
        Host_Main();
 
+       Sys_Quit(0);
+
        return 0;
 }
 
index de8e266a61460a2c8cf2413bafe51d6c2a32dab1..12b4174a2ea653f7fd15bc86f8528aa79e7d314b 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -363,6 +363,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
 
        Host_Main();
 
+       Sys_Quit(0);
+
        /* return success of application */
        return true;
 }