Prevent deleting players while in-game, if you delete yourself while you're playing I have no idea whatwill happen... thanks kroArtem for noticing

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9989 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-10-15 23:57:46 +00:00
parent 3655424189
commit 3707765721

View File

@@ -81,6 +81,16 @@ void OptionsScreenPlayers::init()
players->addItem( core::stringc(UserConfigParams::m_all_players[n].getName().c_str()).c_str(),
translations->fribidize(UserConfigParams::m_all_players[n].getName()) );
}
if (StateManager::get()->getGameState() == GUIEngine::INGAME_MENU)
{
players->setDeactivated();
}
else
{
players->setActivated();
}
} // init
// -----------------------------------------------------------------------------