From 0a088339d9d946d9b2bea208d66bf9f21f6d9378 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Tue, 2 Mar 2010 20:09:53 +0000 Subject: * Do not separately log fake destructions of marked structures (from r1961) --- src/game/g_combat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/g_combat.c b/src/game/g_combat.c index bf7a01b8..b33e9bc8 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -1360,6 +1360,10 @@ void G_LogDestruction( gentity_t *self, gentity_t *actor, int mod ) if( !actor ) return; + // don't log when marked structures are removed + if( mod == MOD_DECONSTRUCT && !actor->client ) + return; + if( actor->client && actor->client->pers.teamSelection == BG_Buildable( self->s.modelindex )->team ) { -- cgit