corregit: flags estatics en hiscore_tale.cpp
This commit is contained in:
@@ -368,17 +368,14 @@ void HiScoreTable::glowEntryNames() {
|
||||
|
||||
// Gestiona el contador
|
||||
void HiScoreTable::updateCounter() {
|
||||
static bool background_changed = false;
|
||||
static bool fade_activated = false;
|
||||
|
||||
if (elapsed_time_ >= BACKGROUND_CHANGE_S && !background_changed) {
|
||||
if (elapsed_time_ >= BACKGROUND_CHANGE_S && !hiscore_flags_.background_changed) {
|
||||
background_->setColor(background_fade_color_.DARKEN());
|
||||
background_->setAlpha(96);
|
||||
background_changed = true;
|
||||
hiscore_flags_.background_changed = true;
|
||||
}
|
||||
|
||||
if (elapsed_time_ >= COUNTER_END_S && !fade_activated) {
|
||||
if (elapsed_time_ >= COUNTER_END_S && !hiscore_flags_.fade_activated) {
|
||||
fade_->activate();
|
||||
fade_activated = true;
|
||||
hiscore_flags_.fade_activated = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user