diff options
Diffstat (limited to 'code/qcommon/common.c')
-rw-r--r-- | code/qcommon/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 9dc4b17..d4cab1e 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -331,8 +331,9 @@ do the apropriate things. */ void Com_Quit_f( void ) { // don't try to shutdown if we are in a recursive error + char *p = Cmd_Args( ); if ( !com_errorEntered ) { - SV_Shutdown ("Server quit"); + SV_Shutdown (p[0] ? p : "Server quit"); CL_Shutdown (); Com_Shutdown (); FS_Shutdown(qtrue); |