From 852a1eed8e0795adb41d0155ce232159111f071e Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 22 Aug 2002 01:51:32 +0000 Subject: * Fixed medistat bugs * Forced focus on menu load --- src/game/g_buildable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game') 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++; -- cgit