summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-13 19:00:10 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:12 +0100
commite019c8c6bcd796fbd1aeef9e28f4e3df546a9b58 (patch)
treee9610ba376717a879e2b917a31103c4f8253220b
parenta63c1534cc8d8eb5d343a80a2805a2e9e6cd5358 (diff)
remove trailing '\n' characters from error strings
-rw-r--r--src/game/bg_alloc.c6
-rw-r--r--src/game/bg_voice.c2
-rw-r--r--src/game/g_buildable.c4
-rw-r--r--src/game/g_cmds.c6
4 files changed, 9 insertions, 9 deletions
diff --git a/src/game/bg_alloc.c b/src/game/bg_alloc.c
index f69c2bec..39d57d28 100644
--- a/src/game/bg_alloc.c
+++ b/src/game/bg_alloc.c
@@ -62,7 +62,7 @@ void *BG_Alloc( int size )
for( fmn = freeHead; fmn; fmn = fmn->next )
{
if( fmn->cookie != FREEMEMCOOKIE )
- Com_Error( ERR_DROP, "BG_Alloc: Memory corruption detected!\n" );
+ Com_Error( ERR_DROP, "BG_Alloc: Memory corruption detected!" );
if( fmn->size >= allocsize )
{
@@ -110,7 +110,7 @@ void *BG_Alloc( int size )
return( (void *) ptr );
}
- Com_Error( ERR_DROP, "BG_Alloc: failed on allocation of %i bytes\n", size );
+ Com_Error( ERR_DROP, "BG_Alloc: failed on allocation of %i bytes", size );
return( NULL );
}
@@ -175,7 +175,7 @@ void BG_DefragmentMemory( void )
for( fmn = freeHead; fmn; )
{
if( fmn->cookie != FREEMEMCOOKIE )
- Com_Error( ERR_DROP, "BG_DefragmentMemory: Memory corruption detected!\n" );
+ Com_Error( ERR_DROP, "BG_DefragmentMemory: Memory corruption detected!" );
if( fmn == endfmn )
{
diff --git a/src/game/bg_voice.c b/src/game/bg_voice.c
index cbc2cc10..828219aa 100644
--- a/src/game/bg_voice.c
+++ b/src/game/bg_voice.c
@@ -52,7 +52,7 @@ static void BG_VoiceParseError( fileHandle_t handle, char *err )
trap_Parse_SourceFileAndLine( handle, filename, &line );
trap_Parse_FreeSource( handle );
- Com_Error( ERR_FATAL, "%s on line %d of %s\n", err, line, filename );
+ Com_Error( ERR_FATAL, "%s on line %d of %s", err, line, filename );
}
/*
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 34136909..a61b0eff 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -3103,7 +3103,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable,
}
else
{
- Com_Error( ERR_FATAL, "team is %d\n", team );
+ Com_Error( ERR_FATAL, "team is %d", team );
return IBE_NONE;
}
@@ -3464,7 +3464,7 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance
break;
default:
- Com_Error( ERR_FATAL, "No reason for denying build of %d\n", buildable );
+ Com_Error( ERR_FATAL, "No reason for denying build of %d", buildable );
break;
}
}
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index c6ac1b5b..1005c6f1 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -925,13 +925,13 @@ void G_Say( gentity_t *ent, saymode_t mode, const char *chatText )
case SAY_TEAM:
// console say_team is handled in g_svscmds, not here
if( !ent || !ent->client )
- Com_Error( ERR_FATAL, "SAY_TEAM by non-client entity\n" );
+ Com_Error( ERR_FATAL, "SAY_TEAM by non-client entity" );
G_LogPrintf( "SayTeam: %d \"%s" S_COLOR_WHITE "\": " S_COLOR_CYAN "%s\n",
(int)( ent - g_entities ), ent->client->pers.netname, chatText );
break;
case SAY_RAW:
if( ent )
- Com_Error( ERR_FATAL, "SAY_RAW by client entity\n" );
+ Com_Error( ERR_FATAL, "SAY_RAW by client entity" );
G_LogPrintf( "Chat: -1 \"console\": %s\n", chatText );
default:
break;
@@ -1037,7 +1037,7 @@ void Cmd_VSay_f( gentity_t *ent )
weapon_t weapon;
if( !ent || !ent->client )
- Com_Error( ERR_FATAL, "Cmd_VSay_f() called by non-client entity\n" );
+ Com_Error( ERR_FATAL, "Cmd_VSay_f() called by non-client entity" );
trap_Argv( 0, arg, sizeof( arg ) );
if( trap_Argc( ) < 2 )