Loading Screen: temporarily disable animation rate limiter

Seems to make the loading screen progress faster and gets rid of the weird issue
where the animation sometime wouldn't show up on game launch. Odd.
This commit is contained in:
Charles Dang 2018-04-18 15:16:13 +11:00
parent 7a020c3130
commit baab5a8156

View file

@ -174,16 +174,16 @@ void loading_screen::draw_callback()
progress_stage_label_->set_label(iter->second);
}
if(SDL_GetTicks() < next_animation_time_) {
return;
}
//if(SDL_GetTicks() < next_animation_time_) {
// return;
//}
++animation_counter_;
if(animation_counter_ % 2 == 0) {
animation_label_->set_label(animation_stages_[(animation_counter_ / 2) % animation_stages_.size()]);
}
set_next_animation_time();
//set_next_animation_time();
}
loading_screen::~loading_screen()