Fixed problem with race setup : kart amount would only be considered if you changed it, if you left the default value of 4 you'd be alone

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3594 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-06-05 01:03:46 +00:00
parent 3cc2aad628
commit b3a4e5b66b

View File

@ -142,6 +142,9 @@ namespace StateManager
// TODO - if user arrived to this screen by pressing esc from teh enxt, the behaviour below might be incorrect
// it would be better to restore previously set settings.
race_manager->setDifficulty( (RaceManager::Difficulty)user_config->getDefaultDifficulty() );
SpinnerWidget* kartamount = getCurrentScreen()->getWidget<SpinnerWidget>("aikartamount");
race_manager->setNumKarts( kartamount->getValue() + 1 );
}
else if(name == "difficulty")
{