diff options
| author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-05-12 14:02:48 +0000 | 
|---|---|---|
| committer | Tim Angus <tim@ngus.net> | 2013-01-09 22:15:38 +0000 | 
| commit | c6d43a9ba93e079153f298cf8ec978e4cb1f0a38 (patch) | |
| tree | 40bb42d874cd82a2b50b5ccf712203a80d431ded /src | |
| parent | b4597c4d44c8b9f02a9129a7885b8a41c095d514 (diff) | |
Remove newlines from Com_Error message format strings, patch by DevHC
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/cl_avi.c | 6 | ||||
| -rw-r--r-- | src/client/cl_cgame.c | 2 | ||||
| -rw-r--r-- | src/client/cl_parse.c | 6 | ||||
| -rw-r--r-- | src/client/snd_dma.c | 4 | ||||
| -rw-r--r-- | src/client/snd_main.c | 2 | ||||
| -rw-r--r-- | src/client/snd_openal.c | 2 | ||||
| -rw-r--r-- | src/qcommon/common.c | 8 | ||||
| -rw-r--r-- | src/qcommon/files.c | 54 | ||||
| -rw-r--r-- | src/qcommon/huffman.c | 4 | ||||
| -rw-r--r-- | src/qcommon/msg.c | 4 | ||||
| -rw-r--r-- | src/qcommon/vm.c | 2 | ||||
| -rw-r--r-- | src/qcommon/vm_powerpc.c | 4 | ||||
| -rw-r--r-- | src/qcommon/vm_sparc.c | 2 | ||||
| -rw-r--r-- | src/sdl/sdl_input.c | 2 | ||||
| -rw-r--r-- | src/server/sv_client.c | 2 | ||||
| -rw-r--r-- | src/server/sv_init.c | 8 | ||||
| -rw-r--r-- | src/server/sv_net_chan.c | 2 | ||||
| -rw-r--r-- | src/server/sv_snapshot.c | 2 | 
18 files changed, 58 insertions, 58 deletions
diff --git a/src/client/cl_avi.c b/src/client/cl_avi.c index 7f673fa8..723fbfa4 100644 --- a/src/client/cl_avi.c +++ b/src/client/cl_avi.c @@ -82,7 +82,7 @@ SafeFS_Write  static ID_INLINE void SafeFS_Write( const void *buffer, int len, fileHandle_t f )  {    if( FS_Write( buffer, len, f ) < len ) -    Com_Error( ERR_DROP, "Failed to write avi file\n" ); +    Com_Error( ERR_DROP, "Failed to write avi file" );  }  /* @@ -142,7 +142,7 @@ static ID_INLINE void START_CHUNK( const char *s )  {    if( afd.chunkStackTop == MAX_RIFF_CHUNKS )    { -    Com_Error( ERR_DROP, "ERROR: Top of chunkstack breached\n" ); +    Com_Error( ERR_DROP, "ERROR: Top of chunkstack breached" );    }    afd.chunkStack[ afd.chunkStackTop ] = bufIndex; @@ -162,7 +162,7 @@ static ID_INLINE void END_CHUNK( void )    if( afd.chunkStackTop <= 0 )    { -    Com_Error( ERR_DROP, "ERROR: Bottom of chunkstack breached\n" ); +    Com_Error( ERR_DROP, "ERROR: Bottom of chunkstack breached" );    }    afd.chunkStackTop--; diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c index babc5241..1ec50288 100644 --- a/src/client/cl_cgame.c +++ b/src/client/cl_cgame.c @@ -297,7 +297,7 @@ rescan:  		if ( argc >= 2 )  			Com_Error( ERR_SERVERDISCONNECT, "Server disconnected - %s", Cmd_Argv( 1 ) );  		else -			Com_Error( ERR_SERVERDISCONNECT, "Server disconnected\n" ); +			Com_Error( ERR_SERVERDISCONNECT, "Server disconnected" );  	}  	if ( !strcmp( cmd, "bcs0" ) ) { diff --git a/src/client/cl_parse.c b/src/client/cl_parse.c index 42465f1b..5405ebd8 100644 --- a/src/client/cl_parse.c +++ b/src/client/cl_parse.c @@ -266,7 +266,7 @@ void CL_ParseSnapshot( msg_t *msg ) {  	if(len > sizeof(newSnap.areamask))  	{ -		Com_Error (ERR_DROP,"CL_ParseSnapshot: Invalid size %d for areamask.", len); +		Com_Error (ERR_DROP,"CL_ParseSnapshot: Invalid size %d for areamask", len);  		return;  	} @@ -577,7 +577,7 @@ void CL_ParseDownload ( msg_t *msg ) {  	size = MSG_ReadShort ( msg );  	if (size < 0 || size > sizeof(data))  	{ -		Com_Error(ERR_DROP, "CL_ParseDownload: Invalid size %d for download chunk.", size); +		Com_Error(ERR_DROP, "CL_ParseDownload: Invalid size %d for download chunk", size);  		return;  	} @@ -882,7 +882,7 @@ void CL_ParseServerMessage( msg_t *msg ) {  	// other commands  		switch ( cmd ) {  		default: -			Com_Error (ERR_DROP,"CL_ParseServerMessage: Illegible server message\n"); +			Com_Error (ERR_DROP,"CL_ParseServerMessage: Illegible server message");  			break;			  		case svc_nop:  			break; diff --git a/src/client/snd_dma.c b/src/client/snd_dma.c index 5d53533b..9ff76503 100644 --- a/src/client/snd_dma.c +++ b/src/client/snd_dma.c @@ -260,10 +260,10 @@ static sfx_t *S_FindName( const char *name ) {  	sfx_t	*sfx;  	if (!name) { -		Com_Error (ERR_FATAL, "S_FindName: NULL\n"); +		Com_Error (ERR_FATAL, "S_FindName: NULL");  	}  	if (!name[0]) { -		Com_Error (ERR_FATAL, "S_FindName: empty name\n"); +		Com_Error (ERR_FATAL, "S_FindName: empty name");  	}  	if (strlen(name) >= MAX_QPATH) { diff --git a/src/client/snd_main.c b/src/client/snd_main.c index d0290e94..59559deb 100644 --- a/src/client/snd_main.c +++ b/src/client/snd_main.c @@ -524,7 +524,7 @@ void S_Init( void )  		if( started ) {  			if( !S_ValidSoundInterface( &si ) ) { -				Com_Error( ERR_FATAL, "Sound interface invalid." ); +				Com_Error( ERR_FATAL, "Sound interface invalid" );  			}  			S_SoundInfo( ); diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c index 9b60aa71..63c4f772 100644 --- a/src/client/snd_openal.c +++ b/src/client/snd_openal.c @@ -230,7 +230,7 @@ S_AL_BufferUseDefault  static void S_AL_BufferUseDefault(sfxHandle_t sfx)  {  	if(sfx == default_sfx) -		Com_Error(ERR_FATAL, "Can't load default sound effect %s\n", knownSfx[sfx].filename); +		Com_Error(ERR_FATAL, "Can't load default sound effect %s", knownSfx[sfx].filename);  	Com_Printf( S_COLOR_YELLOW "WARNING: Using default sound for %s\n", knownSfx[sfx].filename);  	knownSfx[sfx].isDefault = qtrue; diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 761fe726..069eb922 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -1053,12 +1053,12 @@ void Z_CheckHeap( void ) {  			break;			// all blocks have been hit  		}  		if ( (byte *)block + block->size != (byte *)block->next) -			Com_Error( ERR_FATAL, "Z_CheckHeap: block size does not touch the next block\n" ); +			Com_Error( ERR_FATAL, "Z_CheckHeap: block size does not touch the next block" );  		if ( block->next->prev != block) { -			Com_Error( ERR_FATAL, "Z_CheckHeap: next block doesn't have proper back link\n" ); +			Com_Error( ERR_FATAL, "Z_CheckHeap: next block doesn't have proper back link" );  		}  		if ( !block->tag && !block->next->tag ) { -			Com_Error( ERR_FATAL, "Z_CheckHeap: two consecutive free blocks\n" ); +			Com_Error( ERR_FATAL, "Z_CheckHeap: two consecutive free blocks" );  		}  	}  } @@ -1869,7 +1869,7 @@ void Hunk_Trash( void ) {  		return;  #ifdef _DEBUG -	Com_Error(ERR_DROP, "hunk trashed\n"); +	Com_Error(ERR_DROP, "hunk trashed");  	return;  #endif diff --git a/src/qcommon/files.c b/src/qcommon/files.c index 129daeca..62edf997 100644 --- a/src/qcommon/files.c +++ b/src/qcommon/files.c @@ -495,7 +495,7 @@ qboolean FS_CreatePath (char *OSPath) {  			// create the directory  			*ofs = 0;  			if (!Sys_Mkdir (path)) { -				Com_Error( ERR_FATAL, "FS_CreatePath: failed to create path \"%s\"\n", +				Com_Error( ERR_FATAL, "FS_CreatePath: failed to create path \"%s\"",  					path );  			}  			*ofs = PATH_SEP; @@ -608,7 +608,7 @@ fileHandle_t FS_SV_FOpenFileWrite( const char *filename ) {  	fileHandle_t	f;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	ospath = FS_BuildOSPath( fs_homepath->string, filename, "" ); @@ -652,7 +652,7 @@ int FS_SV_FOpenFileRead( const char *filename, fileHandle_t *fp ) {  	fileHandle_t	f = 0;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	f = FS_HandleForFile(); @@ -717,7 +717,7 @@ void FS_SV_Rename( const char *from, const char *to ) {  	char			*from_ospath, *to_ospath;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	// don't let sound stutter @@ -749,7 +749,7 @@ void FS_Rename( const char *from, const char *to ) {  	char			*from_ospath, *to_ospath;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	// don't let sound stutter @@ -779,7 +779,7 @@ on files returned by FS_FOpenFile...  */  void FS_FCloseFile( fileHandle_t f ) {  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if (fsh[f].zipFile == qtrue) { @@ -809,7 +809,7 @@ fileHandle_t FS_FOpenFileWrite( const char *filename ) {  	fileHandle_t	f;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	f = FS_HandleForFile(); @@ -852,7 +852,7 @@ fileHandle_t FS_FOpenFileAppend( const char *filename ) {  	fileHandle_t	f;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	f = FS_HandleForFile(); @@ -895,7 +895,7 @@ fileHandle_t FS_FCreateOpenPipeFile( const char *filename ) {  	fileHandle_t	f;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	f = FS_HandleForFile(); @@ -1043,7 +1043,7 @@ int FS_FOpenFileRead( const char *filename, fileHandle_t *file, qboolean uniqueF  	hash = 0;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( file == NULL ) { @@ -1082,7 +1082,7 @@ int FS_FOpenFileRead( const char *filename, fileHandle_t *file, qboolean uniqueF  	}  	if ( !filename ) { -		Com_Error( ERR_FATAL, "FS_FOpenFileRead: NULL 'filename' parameter passed\n" ); +		Com_Error( ERR_FATAL, "FS_FOpenFileRead: NULL 'filename' parameter passed" );  	}  	// qpaths are not supposed to have a leading slash @@ -1238,7 +1238,7 @@ char *FS_FindDll( const char *filename ) {  	directory_t		*dir;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	for ( search = fs_searchpaths ; search ; search = search->next ) { @@ -1268,7 +1268,7 @@ Properly handles partial reads  */  int FS_Read2( void *buffer, int len, fileHandle_t f ) {  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !f ) { @@ -1292,7 +1292,7 @@ int FS_Read( void *buffer, int len, fileHandle_t f ) {  	int		tries;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !f ) { @@ -1346,7 +1346,7 @@ int FS_Write( const void *buffer, int len, fileHandle_t h ) {  	FILE	*f;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !h ) { @@ -1407,7 +1407,7 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) {  	int		_origin;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  		return -1;  	} @@ -1445,7 +1445,7 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) {  				break;  			default: -				Com_Error( ERR_FATAL, "Bad origin in FS_Seek\n" ); +				Com_Error( ERR_FATAL, "Bad origin in FS_Seek" );  				return -1;  				break;  		} @@ -1464,7 +1464,7 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) {  			break;  		default:  			_origin = SEEK_CUR; -			Com_Error( ERR_FATAL, "Bad origin in FS_Seek\n" ); +			Com_Error( ERR_FATAL, "Bad origin in FS_Seek" );  			break;  		} @@ -1488,11 +1488,11 @@ int	FS_FileIsInPAK(const char *filename, int *pChecksum ) {  	long			hash = 0;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !filename ) { -		Com_Error( ERR_FATAL, "FS_FOpenFileRead: NULL 'filename' parameter passed\n" ); +		Com_Error( ERR_FATAL, "FS_FOpenFileRead: NULL 'filename' parameter passed" );  	}  	// qpaths are not supposed to have a leading slash @@ -1556,11 +1556,11 @@ int FS_ReadFile( const char *qpath, void **buffer ) {  	int				len;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !qpath || !qpath[0] ) { -		Com_Error( ERR_FATAL, "FS_ReadFile with empty name\n" ); +		Com_Error( ERR_FATAL, "FS_ReadFile with empty name" );  	}  	buf = NULL;	// quiet compiler warning @@ -1665,7 +1665,7 @@ FS_FreeFile  */  void FS_FreeFile( void *buffer ) {  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !buffer ) {  		Com_Error( ERR_FATAL, "FS_FreeFile( NULL )" ); @@ -1691,7 +1691,7 @@ void FS_WriteFile( const char *qpath, const void *buffer, int size ) {  	fileHandle_t f;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !qpath || !buffer ) { @@ -1948,7 +1948,7 @@ char **FS_ListFilteredFiles( const char *path, const char *extension, char *filt  	char			zpath[MAX_ZPATH];  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !path ) { @@ -2079,7 +2079,7 @@ void FS_FreeFileList( char **list ) {  	int		i;  	if ( !fs_searchpaths ) { -		Com_Error( ERR_FATAL, "Filesystem call made without initialization\n" ); +		Com_Error( ERR_FATAL, "Filesystem call made without initialization" );  	}  	if ( !list ) { @@ -3376,7 +3376,7 @@ void FS_Restart( int checksumFeed ) {  			lastValidBase[0] = '\0';  			lastValidGame[0] = '\0';  			FS_Restart(checksumFeed); -			Com_Error( ERR_DROP, "Invalid game folder\n" ); +			Com_Error( ERR_DROP, "Invalid game folder" );  			return;  		}  		Com_Error( ERR_FATAL, "Couldn't load default.cfg" ); diff --git a/src/qcommon/huffman.c b/src/qcommon/huffman.c index 8ef702af..f230c96a 100644 --- a/src/qcommon/huffman.c +++ b/src/qcommon/huffman.c @@ -274,7 +274,7 @@ int Huff_Receive (node_t *node, int *ch, byte *fin) {  	}  	if (!node) {  		return 0; -//		Com_Error(ERR_DROP, "Illegal tree!\n"); +//		Com_Error(ERR_DROP, "Illegal tree!");  	}  	return (*ch = node->symbol);  } @@ -292,7 +292,7 @@ void Huff_offsetReceive (node_t *node, int *ch, byte *fin, int *offset) {  	if (!node) {  		*ch = 0;  		return; -//		Com_Error(ERR_DROP, "Illegal tree!\n"); +//		Com_Error(ERR_DROP, "Illegal tree!");  	}  	*ch = node->symbol;  	*offset = bloc; diff --git a/src/qcommon/msg.c b/src/qcommon/msg.c index 05a7aa9f..d20803b4 100644 --- a/src/qcommon/msg.c +++ b/src/qcommon/msg.c @@ -156,7 +156,7 @@ void MSG_WriteBits( msg_t *msg, int value, int bits ) {  			msg->cursize += 4;  			msg->bit += 32;  		} else { -			Com_Error(ERR_DROP, "can't read %d bits\n", bits); +			Com_Error(ERR_DROP, "can't read %d bits", bits);  		}  	} else {  //		fp = fopen("c:\\netchan.bin", "a"); @@ -214,7 +214,7 @@ int MSG_ReadBits( msg_t *msg, int bits ) {  			msg->readcount += 4;  			msg->bit += 32;  		} else { -			Com_Error(ERR_DROP, "can't read %d bits\n", bits); +			Com_Error(ERR_DROP, "can't read %d bits", bits);  		}  	} else {  		nbits = 0; diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c index 225119fb..37db8b02 100644 --- a/src/qcommon/vm.c +++ b/src/qcommon/vm.c @@ -503,7 +503,7 @@ vm_t *VM_Restart( vm_t *vm ) {  	Com_Printf( "VM_Restart()\n" );  	if( !( header = VM_LoadQVM( vm, qfalse ) ) ) { -		Com_Error( ERR_DROP, "VM_Restart failed.\n" ); +		Com_Error( ERR_DROP, "VM_Restart failed" );  		return NULL;  	} diff --git a/src/qcommon/vm_powerpc.c b/src/qcommon/vm_powerpc.c index 831e5672..47c6c1de 100644 --- a/src/qcommon/vm_powerpc.c +++ b/src/qcommon/vm_powerpc.c @@ -1,4 +1,4 @@ -/* +50/*  ===========================================================================  Copyright (C) 2008 Przemyslaw Iskra <sparky@pld-linux.org> @@ -47,7 +47,7 @@ static clock_t time_total_vm = 0;  /* exit() won't be called but use it because it is marked with noreturn */  #define DIE( reason ) \  	do { \ -		Com_Error(ERR_DROP, "vm_powerpc compiler error: " reason "\n"); \ +		Com_Error(ERR_DROP, "vm_powerpc compiler error: " reason); \  		exit(1); \  	} while(0) diff --git a/src/qcommon/vm_sparc.c b/src/qcommon/vm_sparc.c index 370ee200..e707dc23 100644 --- a/src/qcommon/vm_sparc.c +++ b/src/qcommon/vm_sparc.c @@ -36,7 +36,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA  /* exit() won't be called but use it because it is marked with noreturn */  #define DIE( reason ) \  	do { \ -		Com_Error(ERR_DROP, "vm_sparc compiler error: " reason "\n"); \ +		Com_Error(ERR_DROP, "vm_sparc compiler error: " reason); \  		exit(1); \  	} while(0) diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index 8de34078..a2353490 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -1088,7 +1088,7 @@ void IN_Init( void )  	if( !SDL_WasInit( SDL_INIT_VIDEO ) )  	{ -		Com_Error( ERR_FATAL, "IN_Init called before SDL_Init( SDL_INIT_VIDEO )\n" ); +		Com_Error( ERR_FATAL, "IN_Init called before SDL_Init( SDL_INIT_VIDEO )" );  		return;  	} diff --git a/src/server/sv_client.c b/src/server/sv_client.c index 124c0a74..36c5e711 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -265,7 +265,7 @@ void SV_DirectConnect( netadr_t from ) {  	if ( !newcl ) {  		if ( NET_IsLocalAddress( from ) ) { -			Com_Error( ERR_FATAL, "server is full on local connect\n" ); +			Com_Error( ERR_FATAL, "server is full on local connect" );  			return;  		}  		else { diff --git a/src/server/sv_init.c b/src/server/sv_init.c index e84ff0f4..a723f68c 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -116,7 +116,7 @@ void SV_SetConfigstring (int index, const char *val) {  	client_t	*client;  	if ( index < 0 || index >= MAX_CONFIGSTRINGS ) { -		Com_Error (ERR_DROP, "SV_SetConfigstring: bad index %i\n", index); +		Com_Error (ERR_DROP, "SV_SetConfigstring: bad index %i", index);  	}  	if ( !val ) { @@ -164,7 +164,7 @@ void SV_GetConfigstring( int index, char *buffer, int bufferSize ) {  		Com_Error( ERR_DROP, "SV_GetConfigstring: bufferSize == %i", bufferSize );  	}  	if ( index < 0 || index >= MAX_CONFIGSTRINGS ) { -		Com_Error (ERR_DROP, "SV_GetConfigstring: bad index %i\n", index); +		Com_Error (ERR_DROP, "SV_GetConfigstring: bad index %i", index);  	}  	if ( !sv.configstrings[index].s ) {  		buffer[0] = 0; @@ -206,7 +206,7 @@ SV_SetUserinfo  */  void SV_SetUserinfo( int index, const char *val ) {  	if ( index < 0 || index >= sv_maxclients->integer ) { -		Com_Error (ERR_DROP, "SV_SetUserinfo: bad index %i\n", index); +		Com_Error (ERR_DROP, "SV_SetUserinfo: bad index %i", index);  	}  	if ( !val ) { @@ -230,7 +230,7 @@ void SV_GetUserinfo( int index, char *buffer, int bufferSize ) {  		Com_Error( ERR_DROP, "SV_GetUserinfo: bufferSize == %i", bufferSize );  	}  	if ( index < 0 || index >= sv_maxclients->integer ) { -		Com_Error (ERR_DROP, "SV_GetUserinfo: bad index %i\n", index); +		Com_Error (ERR_DROP, "SV_GetUserinfo: bad index %i", index);  	}  	Q_strncpyz( buffer, svs.clients[ index ].userinfo, bufferSize );  } diff --git a/src/server/sv_net_chan.c b/src/server/sv_net_chan.c index 1adba16d..33d04b3f 100644 --- a/src/server/sv_net_chan.c +++ b/src/server/sv_net_chan.c @@ -140,7 +140,7 @@ void SV_Netchan_TransmitNextFragment( client_t *client ) {  	{  		// make sure the netchan queue has been properly initialized (you never know)  		if ((!client->netchan_end_queue) && (client->state >= CS_CONNECTED)) { -			Com_Error(ERR_DROP, "netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment\n"); +			Com_Error(ERR_DROP, "netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment");  		}  		// the last fragment was transmitted, check wether we have queued messages  		if (client->netchan_start_queue) { diff --git a/src/server/sv_snapshot.c b/src/server/sv_snapshot.c index a7d0f17b..10820d07 100644 --- a/src/server/sv_snapshot.c +++ b/src/server/sv_snapshot.c @@ -351,7 +351,7 @@ static void SV_AddEntitiesVisibleFromPoint( vec3_t origin, clientSnapshot_t *fra  		// entities can be flagged to be sent to a given mask of clients  		if ( ent->r.svFlags & SVF_CLIENTMASK ) {  			if (frame->ps.clientNum >= 32) -				Com_Error( ERR_DROP, "SVF_CLIENTMASK: clientNum >= 32\n" ); +				Com_Error( ERR_DROP, "SVF_CLIENTMASK: clientNum >= 32" );  			if (~ent->r.singleClient & (1 << frame->ps.clientNum))  				continue;  		}  | 
