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;
}
}
Z_Free(history);
history = NULL;
- Host_Quit_f(&cmd_client);
+ host.state = host_shutdown;
}
}
else
- Host_Quit_f(&cmd_client);
+ host.state = host_shutdown;
}
}
Host_Quit_f
==================
*/
-void Host_Quit_f(cmd_state_t *cmd)
+static void Host_Quit_f(cmd_state_t *cmd)
{
if(host.state == host_shutdown)
Con_Printf("shutting down already!\n");
case 'Y':
case 'y':
- Host_Quit_f(cmd);
+ host.state = host_shutdown;
break;
default:
void Host_Shutdown(void);
void Host_StartVideo(void);
void Host_Error(const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN;
-void Host_Quit_f(cmd_state_t *cmd);
void Host_NoOperation_f(cmd_state_t *cmd);
void Host_LockSession(void);
void Host_UnlockSession(void);