]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
host: Return to main() if the loop breaks and Sys_Quit from there
[xonotic/darkplaces.git] / sys_win.c
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;
 }