Permalink
Browse files

Fix newlines in games.log

  • Loading branch information...
DolceTriade committed Apr 10, 2016
1 parent ab2b7b4 commit 0ac99f1125647e9bbca91639c0a170ee5e7d98da
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/sgame/sg_combat.cpp
  2. +1 −1 src/sgame/sg_main.cpp
View
@@ -369,7 +369,7 @@ void G_PlayerDie( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, in
if ( assistant != ENTITYNUM_NONE )
{
G_LogPrintf( "Die: %d %d %s %d %d: %s^* killed %s^*; %s^* assisted\n",
G_LogPrintf( "Die: %d %d %s %d %d: %s^* killed %s^*; %s^* assisted",
killer,
( int )( self - g_entities ),
obit,
@@ -381,7 +381,7 @@ void G_PlayerDie( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, in
}
else
{
G_LogPrintf( "Die: %d %d %s: %s^* killed %s\n",
G_LogPrintf( "Die: %d %d %s: %s^* killed %s",
killer,
( int )( self - g_entities ),
obit,
@@ -1060,7 +1060,7 @@ void G_LogDestruction( gentity_t *self, gentity_t *actor, int mod )
return;
}
G_LogPrintf( "^3Deconstruct: %d %d %s %s: %s %s by %s\n",
G_LogPrintf( "^3Deconstruct: %d %d %s %s: %s %s by %s",
( int )( actor - g_entities ),
( int )( self - g_entities ),
BG_Buildable( self->s.modelindex )->name,
View
@@ -1837,7 +1837,7 @@ void QDECL PRINTF_LIKE(1) G_LogPrintf( const char *fmt, ... )
Color::StripColors( string, decolored, sizeof( decolored ) );
trap_FS_Write( decolored, strlen( decolored ), level.logFile );
trap_FS_Write( "", 1, level.logFile );
trap_FS_Write( "\n", 1, level.logFile );
}
/*

0 comments on commit 0ac99f1

Please sign in to comment.