Apply patch by steelstyle to not hide mouse in overworld when closing a dialog

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11802 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-10-28 23:06:36 +00:00
parent 8111440317
commit 3d6f24544e

View File

@ -190,7 +190,8 @@ void StateManager::onGameStateChange(GameState new_state)
{
if (new_state == GAME)
{
irr_driver->hidePointer();
if (race_manager->getMinorMode() != RaceManager::MINOR_MODE_OVERWORLD)
irr_driver->hidePointer();
input_manager->setMode(InputManager::INGAME);
}
else // menu (including in-game menu)