summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 73cc59ee..657aed73 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1222,7 +1222,7 @@ void HMedistat_Think( gentity_t *self )
int maxclients;
//make sure we have power
- if( !( self->dcced = findPower( self ) ) )
+ if( !( self->powered = findPower( self ) ) )
{
self->nextthink = level.time + REFRESH_TIME;
return;
@@ -1261,6 +1261,7 @@ void HMedistat_Think( gentity_t *self )
if( player->client && player->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
{
if( player->health < player->client->ps.stats[ STAT_MAX_HEALTH ] &&
+ player->client->ps.pm_type != PM_DEAD &&
healCount < maxclients )
{
healCount++;