Added a -noreset commandline parameter that should help some server admins that have complained.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1765 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9220034213
commit
f187acc6c1
1 changed files with 4 additions and 1 deletions
|
@ -307,6 +307,9 @@ void Sys_Error (const char *error, ...)
|
||||||
Sys_Quit();
|
Sys_Quit();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (COM_CheckParm("-noreset"))
|
||||||
|
Sys_Quit();
|
||||||
|
|
||||||
Sys_Printf ("A new server will be started in 10 seconds unless you press a key\n");
|
Sys_Printf ("A new server will be started in 10 seconds unless you press a key\n");
|
||||||
|
|
||||||
|
|
||||||
|
@ -326,7 +329,7 @@ void Sys_Error (const char *error, ...)
|
||||||
// free(host_parms.membase); //get rid of the mem. We don't need it now.
|
// free(host_parms.membase); //get rid of the mem. We don't need it now.
|
||||||
// system("dqwsv.exe"); //spawn a new server to take over. This way, if debugging, then any key will quit, otherwise the server will just spawn a new one.
|
// system("dqwsv.exe"); //spawn a new server to take over. This way, if debugging, then any key will quit, otherwise the server will just spawn a new one.
|
||||||
GetModuleFileName(NULL, text, sizeof(text));
|
GetModuleFileName(NULL, text, sizeof(text));
|
||||||
spawnl(P_NOWAIT|P_OVERLAY, text, text, NULL);
|
spawnl(P_NOWAIT|P_OVERLAY, text, text, GetCommandLine(), NULL);
|
||||||
Sys_Quit ();
|
Sys_Quit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue