Prevent the in-race GUI to pop up in profile mode (which leads

to all kind of crashes later on). Thanks to KroArtem for reporting this.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9538 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-08-16 23:28:20 +00:00
parent 9a286fa9a6
commit 92a6938862

View File

@@ -27,6 +27,7 @@
#include "input/input_device.hpp"
#include "input/input_manager.hpp"
#include "main_loop.hpp"
#include "modes/profile_world.hpp"
#include "modes/world.hpp"
#include "states_screens/dialogs/race_paused_dialog.hpp"
#include "utils/translation.hpp"
@@ -164,7 +165,8 @@ void StateManager::escapePressed()
// In-game
else if(m_game_mode == GAME)
{
if(World::getWorld()->getPhase()!=WorldStatus::RESULT_DISPLAY_PHASE)
if(World::getWorld()->getPhase()!=WorldStatus::RESULT_DISPLAY_PHASE
&& !ProfileWorld::isProfileMode())
new RacePausedDialog(0.8f, 0.6f);
}
// In menus