fix health rings showing on the gorge being spectated while dead

This commit is contained in:
pierow 2023-09-26 08:36:11 -04:00
parent c2df0b2715
commit bebb696e50

View file

@ -2533,7 +2533,7 @@ void AvHHud::DrawBuildHealthEffectsForEntity(int inEntityIndex, float inAlpha)
{ {
const int kDrawEnemyBuildingDistance = 200; const int kDrawEnemyBuildingDistance = 200;
bool healthLowEnough = theHealthPercentage < (CVAR_GET_FLOAT("hud_teamhealthalert") * 0.01f); bool healthLowEnough = theHealthPercentage < (CVAR_GET_FLOAT("hud_teamhealthalert") * 0.01f);
bool isSpectating = this->GetPlayMode() == PLAYMODE_AWAITINGREINFORCEMENT || this->GetPlayMode() == PLAYMODE_OBSERVER; bool isSpectating = (this->GetPlayMode() == PLAYMODE_AWAITINGREINFORCEMENT || this->GetPlayMode() == PLAYMODE_REINFORCING || this->GetPlayMode() == PLAYMODE_OBSERVER);
bool theEntityIsSpecTarget = inEntityIndex == theLocalPlayer->curstate.iuser2; bool theEntityIsSpecTarget = inEntityIndex == theLocalPlayer->curstate.iuser2;
// Draw effects if we are in top-down mode OR // Draw effects if we are in top-down mode OR