int osdcmd_quit(const osdfuncparm_t *parm) { extern long quittimer; parm=parm; if (!gamequit && numplayers > 1) { if((ps[myconnectindex].gm&MODE_GAME)) { gamequit = 1; quittimer = totalclock+120; } else { sendlogoff(); gameexit(" "); } } else if (numplayers < 2) gameexit(" "); return OSDCMD_OK; }
// This function will quit the game void CVARDEFS_FunctionQuit(void* var) { if( numplayers > 1 ) { if(ps[myconnectindex].gm&MODE_GAME) { gamequit = 1; CONSOLE_SetActive(0); } else { sendlogoff(); gameexit(" "); } } else if( numplayers < 2 ) gameexit(" "); }