Skip to content

Commit

Permalink
fix loading screen when loading mp config.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 30, 2016
1 parent c3bf0ee commit 6910083
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game_config_manager.cpp
Expand Up @@ -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();
Expand All @@ -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;
}
Expand Down
4 changes: 4 additions & 0 deletions src/game_initialization/multiplayer_ui.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6910083

Please sign in to comment.