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:
@@ -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
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user