From ff04da2d93c796c8df997a189290835b6f9a987d Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 21 Jun 2001 15:29:59 +0000 Subject: Random bug fixes --- src/game/g_client.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/game/g_client.c') diff --git a/src/game/g_client.c b/src/game/g_client.c index 33f644d3..24a8f2df 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -548,18 +548,23 @@ void useBody( gentity_t *self, gentity_t *other, gentity_t *activator ) if( activator->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS ) { + //can't pick teammates bodies to bits + if( !Q_stricmp( self->classname, "droidCorpse" ) ) return; + G_AddPredictableEvent( activator, EV_MENU, MN_D_INFEST ); } else { clientNum = activator->client->ps.clientNum; + numerator = self->credits[ clientNum ]; + class = self->s.clientNum; + //can't pick teammates bodies to bits + if( !Q_stricmp( self->classname, "humanCorpse" ) ) return; + //client has already raided this corpse if( self->creditsHash[ clientNum ] ) return; - numerator = self->credits[ clientNum ]; - class = self->s.clientNum; - //total up all the damage done by every client for( i = 0; i < MAX_CLIENTS; i++ ) total += self->credits[ i ]; -- cgit