diff options
author | Tim Angus <tim@ngus.net> | 2004-10-16 15:14:30 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2004-10-16 15:14:30 +0000 |
commit | 7ccb349bbdaedd979fb67db17eef757915c8d74a (patch) | |
tree | 2573d3678e3e1ca67e2a68ba02411ec3d0e93036 /src/game/g_combat.c | |
parent | 97143eb45a8a29904b97ae8251d8d1d349ebd5c7 (diff) |
* Bug fixes to the bug fixes to alien frag sharing
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index bf2e479d..13a5739e 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -252,8 +252,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int if( totalDamage > 0.0f ) { - if( self->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS && - player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) + if( self->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { //nice simple happy bouncy human land float classValue = BG_FindValueOfClass( self->client->ps.stats[ STAT_PCLASS ] ); @@ -262,6 +261,9 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int { player = g_entities + i; + if( player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) + continue; + if( !self->credits[ i ] ) continue; @@ -270,8 +272,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int (int)( classValue * ( self->credits[ i ] / totalDamage ) ) ); } } - else if( self->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS && - player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) + else if( self->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { //horribly complex nasty alien land float humanValue = BG_GetValueOfHuman( self->client->ps ); @@ -282,6 +283,9 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int { player = g_entities + i; + if( player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) + continue; + //this client did no damage if( !self->credits[ i ] ) continue; |