diff options
author | Tim Angus <tim@ngus.net> | 2003-02-23 19:16:36 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-02-23 19:16:36 +0000 |
commit | 63b76c006f1ae19cc68dece317ccbdd6def2549e (patch) | |
tree | 37d15801a4ca355cb017a3abeb7d11c3b5300a53 /src/game/g_combat.c | |
parent | 15bd652f76560d93e8c5516d59180872cba05bb0 (diff) |
* Fixed mutually recursive mine loop
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 391c09b6..a7cf150b 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -230,7 +230,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int AddScore( self, -1 ); } - if( self->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) + if( attacker && attacker->client && self->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { int clientNum = attacker->client->ps.clientNum; float denominator, numerator = self->credits[ clientNum ]; @@ -980,7 +980,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, } // do the damage - if(take) + if( take ) { targ->health = targ->health - take; if( targ->client ) @@ -997,7 +997,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, if( client ) targ->flags |= FL_NO_KNOCKBACK; - if (targ->health < -999) + if( targ->health < -999 ) targ->health = -999; targ->enemy = attacker; |