mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 01:22:37 +00:00
Removed loading screen animation preference
This was added several years ago as a workaround to crashes when the loading screen implementation was less stable.
This commit is contained in:
parent
20e8fae7e2
commit
dba77791cc
@ -202,15 +202,10 @@ loading_screen::~loading_screen()
|
||||
|
||||
void loading_screen::display(std::function<void()> f)
|
||||
{
|
||||
const bool use_loadingscreen_animation = !preferences::disable_loadingscreen_animation();
|
||||
|
||||
if(singleton_ || CVideo::get_singleton().faked()) {
|
||||
f();
|
||||
} else if(use_loadingscreen_animation) {
|
||||
loading_screen(f).show();
|
||||
} else {
|
||||
loading_screen(std::function<void()>()).show();
|
||||
f();
|
||||
loading_screen(f).show();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -925,16 +925,6 @@ void set_disable_auto_moves(bool value)
|
||||
preferences::set("disable_auto_moves", value);
|
||||
}
|
||||
|
||||
bool disable_loadingscreen_animation()
|
||||
{
|
||||
return get("disable_loadingscreen_animation", false);
|
||||
}
|
||||
|
||||
void set_disable_loadingscreen_animation(bool value)
|
||||
{
|
||||
set("disable_loadingscreen_animation", value);
|
||||
}
|
||||
|
||||
bool damage_prediction_allow_monte_carlo_simulation()
|
||||
{
|
||||
return get("damage_prediction_allow_monte_carlo_simulation", true);
|
||||
|
@ -242,9 +242,6 @@ namespace preferences {
|
||||
bool disable_auto_moves();
|
||||
void set_disable_auto_moves(bool value);
|
||||
|
||||
bool disable_loadingscreen_animation();
|
||||
void set_disable_loadingscreen_animation(bool value);
|
||||
|
||||
bool damage_prediction_allow_monte_carlo_simulation();
|
||||
void set_damage_prediction_allow_monte_carlo_simulation(bool value);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user