diff options
author | Tim Angus <tim@ngus.net> | 2001-06-21 15:29:59 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-06-21 15:29:59 +0000 |
commit | ff04da2d93c796c8df997a189290835b6f9a987d (patch) | |
tree | 219c605b9a6e06bb394cd019e2ae0eda051b28cf /src/game/g_client.c | |
parent | 4922e88c22f07d626b0d3fe3b2fc5bd014cac321 (diff) |
Random bug fixes
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 11 |
1 files changed, 8 insertions, 3 deletions
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 ]; |