Apply patch by Slagvi to make sure the last used kart is not locked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
e362700a22
commit
81378440ba
@ -355,6 +355,15 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name,
|
||||
}
|
||||
else
|
||||
{
|
||||
const std::string default_kart = UserConfigParams::m_default_kart;
|
||||
if (slot->isLocked(default_kart))
|
||||
{
|
||||
KartSelectionScreen *next = KartSelectionScreen::getInstance();
|
||||
next->setGoToOverworldNext();
|
||||
next->setMultiplayer(false);
|
||||
StateManager::get()->resetAndGoToScreen(next);
|
||||
return;
|
||||
}
|
||||
OverWorld::enterOverWorld();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user