Fixed highscores update
This commit is contained in:
parent
036a6f986a
commit
d9405aab3a
@ -194,6 +194,7 @@ void TrackInfoScreen::init()
|
|||||||
RibbonWidget* bt_start = getWidget<GUIEngine::RibbonWidget>("buttons");
|
RibbonWidget* bt_start = getWidget<GUIEngine::RibbonWidget>("buttons");
|
||||||
bt_start->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
bt_start->setFocusForPlayer(PLAYER_ID_GAME_MASTER);
|
||||||
|
|
||||||
|
updateHighScores();
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -322,6 +323,7 @@ void TrackInfoScreen::eventCallback(Widget* widget, const std::string& name,
|
|||||||
const int num_ai = m_ai_kart_spinner->getValue();
|
const int num_ai = m_ai_kart_spinner->getValue();
|
||||||
race_manager->setNumKarts( race_manager->getNumLocalPlayers() + num_ai );
|
race_manager->setNumKarts( race_manager->getNumLocalPlayers() + num_ai );
|
||||||
UserConfigParams::m_num_karts = race_manager->getNumLocalPlayers() + num_ai;
|
UserConfigParams::m_num_karts = race_manager->getNumLocalPlayers() + num_ai;
|
||||||
|
updateHighScores();
|
||||||
}
|
}
|
||||||
} // eventCallback
|
} // eventCallback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user