Mercurial > mm7
comparison UI/UIRest.cpp @ 1361:b3ac17fd12de
Moved condition checking to a separate class, extracted it from player::SetCondition
author | Grumpy7 |
---|---|
date | Sun, 14 Jul 2013 23:22:43 +0200 |
parents | 8c2f689b5f0b |
children | d6cf8ead9242 |
comparison
equal
deleted
inserted
replaced
1360:a47d9282ea7c | 1361:b3ac17fd12de |
---|---|
103 | 103 |
104 live_characters = 0; | 104 live_characters = 0; |
105 text_color = TargetColor(10, 0, 0); | 105 text_color = TargetColor(10, 0, 0); |
106 shadow_color = TargetColor(230, 214, 193); | 106 shadow_color = TargetColor(230, 214, 193); |
107 for(int i=1; i<5; ++i) | 107 for(int i=1; i<5; ++i) |
108 if ( !pPlayers[i]->pConditions[Player::Condition_Dead] && !pPlayers[i]->pConditions[Player::Condition_Eradicated] && pPlayers[i]->sHealth > 0 ) | 108 if ( !pPlayers[i]->Dead() && !pPlayers[i]->Eradicated() && pPlayers[i]->sHealth > 0 ) |
109 ++live_characters; | 109 ++live_characters; |
110 | 110 |
111 if ( live_characters ) | 111 if ( live_characters ) |
112 { | 112 { |
113 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_RestUI_restmain)); | 113 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_RestUI_restmain)); |