From b40761a5ffb5706de8c9911f25a641e498edba83 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:58:12 +0000 Subject: * Fix death detection on medistation heal (bug 3981) --- src/game/g_buildable.c | 4 ++-- 1 file 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; -- cgit