diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:58:12 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:22 +0000 |
commit | b40761a5ffb5706de8c9911f25a641e498edba83 (patch) | |
tree | 94cafbdae15c364ebdda012ff6bb3a68bbe677b8 | |
parent | a80cf6c2a7a784b1dc5db99d26f41b75210d3bb0 (diff) |
* Fix death detection on medistation heal (bug 3981)
-rw-r--r-- | src/game/g_buildable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 0336f031..d90c61b5 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2194,7 +2194,7 @@ void HMedistat_Think( gentity_t *self ) if( self->enemy == player && player->client && player->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS && player->health < player->client->ps.stats[ STAT_MAX_HEALTH ] && - player->client->ps.pm_type != PM_DEAD ) + PM_Live( player->client->ps.pm_type ) ) { occupied = qtrue; player->client->ps.stats[ STAT_STATE ] |= SS_HEALING_ACTIVE; @@ -2214,7 +2214,7 @@ void HMedistat_Think( gentity_t *self ) { if( ( player->health < player->client->ps.stats[ STAT_MAX_HEALTH ] || player->client->ps.stats[ STAT_STAMINA ] < MAX_STAMINA ) && - player->client->ps.pm_type != PM_DEAD ) + PM_Live( player->client->ps.pm_type ) ) { self->enemy = player; |