r594 - in trunk/code: client qcommon server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Feb 28 18:01:24 EST 2006


Author: tma
Date: 2006-02-28 18:01:23 -0500 (Tue, 28 Feb 2006)
New Revision: 594

Modified:
   trunk/code/client/cl_main.c
   trunk/code/qcommon/common.c
   trunk/code/server/sv_init.c
   trunk/code/server/sv_main.c
Log:
* Displace the '\n's passed to SV_Shutdown


Modified: trunk/code/client/cl_main.c
===================================================================
--- trunk/code/client/cl_main.c	2006-02-28 21:52:25 UTC (rev 593)
+++ trunk/code/client/cl_main.c	2006-02-28 23:01:23 UTC (rev 594)
@@ -1053,7 +1053,7 @@
 
 	if ( com_sv_running->integer && !strcmp( server, "localhost" ) ) {
 		// if running a local server, kill it
-		SV_Shutdown( "Server quit\n" );
+		SV_Shutdown( "Server quit" );
 	}
 
 	// make sure a local server is killed

Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2006-02-28 21:52:25 UTC (rev 593)
+++ trunk/code/qcommon/common.c	2006-02-28 23:01:23 UTC (rev 594)
@@ -283,13 +283,13 @@
 		longjmp (abortframe, -1);
 	} else if ( code == ERR_DROP || code == ERR_DISCONNECT ) {
 		Com_Printf ("********************\nERROR: %s\n********************\n", com_errorMessage);
-		SV_Shutdown (va("Server crashed: %s\n",  com_errorMessage));
+		SV_Shutdown (va("Server crashed: %s",  com_errorMessage));
 		CL_Disconnect( qtrue );
 		CL_FlushMemory( );
 		com_errorEntered = qfalse;
 		longjmp (abortframe, -1);
 	} else if ( code == ERR_NEED_CD ) {
-		SV_Shutdown( "Server didn't have CD\n" );
+		SV_Shutdown( "Server didn't have CD" );
 		if ( com_cl_running && com_cl_running->integer ) {
 			CL_Disconnect( qtrue );
 			CL_FlushMemory( );
@@ -301,7 +301,7 @@
 		longjmp (abortframe, -1);
 	} else {
 		CL_Shutdown ();
-		SV_Shutdown (va("Server fatal crashed: %s\n", com_errorMessage));
+		SV_Shutdown (va("Server fatal crashed: %s", com_errorMessage));
 	}
 
 	Com_Shutdown ();
@@ -321,7 +321,7 @@
 void Com_Quit_f( void ) {
 	// don't try to shutdown if we are in a recursive error
 	if ( !com_errorEntered ) {
-		SV_Shutdown ("Server quit\n");
+		SV_Shutdown ("Server quit");
 		CL_Shutdown ();
 		Com_Shutdown ();
 		FS_Shutdown(qtrue);

Modified: trunk/code/server/sv_init.c
===================================================================
--- trunk/code/server/sv_init.c	2006-02-28 21:52:25 UTC (rev 593)
+++ trunk/code/server/sv_init.c	2006-02-28 23:01:23 UTC (rev 594)
@@ -646,7 +646,7 @@
 			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\"", message );
+					SV_SendServerCommand( cl, "print \"%s\"\n", message );
 					SV_SendServerCommand( cl, "disconnect" );
 				}
 				// force a snapshot to be sent

Modified: trunk/code/server/sv_main.c
===================================================================
--- trunk/code/server/sv_main.c	2006-02-28 21:52:25 UTC (rev 593)
+++ trunk/code/server/sv_main.c	2006-02-28 23:01:23 UTC (rev 594)
@@ -771,7 +771,7 @@
 
 	// the menu kills the server with this cvar
 	if ( sv_killserver->integer ) {
-		SV_Shutdown ("Server was killed.\n");
+		SV_Shutdown ("Server was killed");
 		Cvar_Set( "sv_killserver", "0" );
 		return;
 	}




More information about the quake3-commits mailing list