Remember number of AI karts

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8155 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-03-31 23:02:30 +00:00
parent 6382089837
commit e239a0c8fa

View File

@ -137,6 +137,7 @@ void RaceSetupScreen::eventCallback(Widget* widget, const std::string& name, con
{
SpinnerWidget* w = dynamic_cast<SpinnerWidget*>(widget);
race_manager->setNumKarts( race_manager->getNumLocalPlayers() + w->getValue() );
UserConfigParams::m_num_karts = race_manager->getNumLocalPlayers() + w->getValue();
}
else if (name == "back")
{