summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-08-22 01:51:32 +0000
committerTim Angus <tim@ngus.net>2002-08-22 01:51:32 +0000
commit852a1eed8e0795adb41d0155ce232159111f071e (patch)
tree6f9cc2c4fed6db40249387c2e59adb431fa1c883 /src/game
parent27363e40aed5f65658c6c48d2b2eea22fa136b3a (diff)
* Fixed medistat bugs
* Forced focus on menu load
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++;