- Added SV_Shutdown to Linux signal handler to ensure that clients don't hang when server gets killed, as suggested by Tony J. White

- Added newline to final message sent to clients.
- Added check for whether client is running at all before CL_Shutdown runs through.
This commit is contained in:
Thilo Schulz 2006-05-04 13:59:58 +00:00
parent 2583351211
commit 1847c321f0
3 changed files with 6 additions and 1 deletions

View file

@ -646,7 +646,7 @@ void SV_FinalMessage( char *message ) {
if (cl->state >= CS_CONNECTED) {
// don't send a disconnect to a local client
if ( cl->netchan.remoteAddress.type != NA_LOOPBACK ) {
SV_SendServerCommand( cl, "print \"%s\"\n", message );
SV_SendServerCommand( cl, "print \"%s\n\"\n", message );
SV_SendServerCommand( cl, "disconnect" );
}
// force a snapshot to be sent