mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 16:05:42 +00:00
fix loading screen when loading mp config.
This commit is contained in:
parent
c3bf0ee816
commit
6910083e86
@ -560,7 +560,7 @@ void game_config_manager::load_game_config_for_create(bool is_mp)
|
||||
|
||||
typedef boost::shared_ptr<game_config::scoped_preproc_define> define;
|
||||
try{
|
||||
load_game_config(NO_INCLUDE_RELOAD);
|
||||
load_game_config_with_loadscreen(NO_INCLUDE_RELOAD);
|
||||
}
|
||||
catch(game::error&) {
|
||||
cache_.clear_defines();
|
||||
@ -572,7 +572,7 @@ void game_config_manager::load_game_config_for_create(bool is_mp)
|
||||
previous_defines.push_back(new_define);
|
||||
}
|
||||
|
||||
load_game_config(NO_FORCE_RELOAD);
|
||||
load_game_config_with_loadscreen(NO_FORCE_RELOAD);
|
||||
|
||||
throw;
|
||||
}
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "game_preferences.hpp"
|
||||
#include "gettext.hpp"
|
||||
#include "gui/dialogs/multiplayer/mp_cmd_wrapper.hpp"
|
||||
#include "gui/dialogs/loadscreen.hpp"
|
||||
#include "lobby_preferences.hpp"
|
||||
#include "log.hpp"
|
||||
#include "marked-up_text.hpp"
|
||||
@ -309,6 +310,9 @@ void ui::process_event()
|
||||
|
||||
void ui::handle_event(const SDL_Event& event)
|
||||
{
|
||||
if (gui2::tloadscreen::displaying()) {
|
||||
return;
|
||||
}
|
||||
gui::widget::handle_event(event);
|
||||
|
||||
if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_RESIZED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user