summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-05-12 14:02:48 +0000
committerTim Angus <tim@ngus.net>2013-01-09 22:15:38 +0000
commitc6d43a9ba93e079153f298cf8ec978e4cb1f0a38 (patch)
tree40bb42d874cd82a2b50b5ccf712203a80d431ded /src/client
parentb4597c4d44c8b9f02a9129a7885b8a41c095d514 (diff)
Remove newlines from Com_Error message format strings, patch by DevHC
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_avi.c6
-rw-r--r--src/client/cl_cgame.c2
-rw-r--r--src/client/cl_parse.c6
-rw-r--r--src/client/snd_dma.c4
-rw-r--r--src/client/snd_main.c2
-rw-r--r--src/client/snd_openal.c2
6 files changed, 11 insertions, 11 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;