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:
parent
6382089837
commit
e239a0c8fa
@ -137,6 +137,7 @@ void RaceSetupScreen::eventCallback(Widget* widget, const std::string& name, con
|
|||||||
{
|
{
|
||||||
SpinnerWidget* w = dynamic_cast<SpinnerWidget*>(widget);
|
SpinnerWidget* w = dynamic_cast<SpinnerWidget*>(widget);
|
||||||
race_manager->setNumKarts( race_manager->getNumLocalPlayers() + w->getValue() );
|
race_manager->setNumKarts( race_manager->getNumLocalPlayers() + w->getValue() );
|
||||||
|
UserConfigParams::m_num_karts = race_manager->getNumLocalPlayers() + w->getValue();
|
||||||
}
|
}
|
||||||
else if (name == "back")
|
else if (name == "back")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user