summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:58:12 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:22 +0000
commitb40761a5ffb5706de8c9911f25a641e498edba83 (patch)
tree94cafbdae15c364ebdda012ff6bb3a68bbe677b8
parenta80cf6c2a7a784b1dc5db99d26f41b75210d3bb0 (diff)
* Fix death detection on medistation heal (bug 3981)
-rw-r--r--src/game/g_buildable.c4
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;