Stop time while the challenge dialog is shown

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-01-28 03:00:31 +00:00
parent c551aa5c59
commit bae9f0e15e

View File

@ -20,6 +20,7 @@
#include "guiengine/engine.hpp"
#include "input/device_manager.hpp"
#include "input/input_manager.hpp"
#include "modes/world.hpp"
#include "network/network_manager.hpp"
#include "race/race_manager.hpp"
#include "states_screens/dialogs/select_challenge.hpp"
@ -32,10 +33,12 @@ SelectChallengeDialog::SelectChallengeDialog(const float percentWidth,
{
loadFromFile("select_challenge.stkgui");
m_challenge_id = challenge_id;
World::getWorld()->schedulePause(WorldStatus::IN_GAME_MENU_PHASE);
}
SelectChallengeDialog::~SelectChallengeDialog()
{
World::getWorld()->scheduleUnpause();
}
GUIEngine::EventPropagation SelectChallengeDialog::processEvent(const std::string& eventSource)