Fixed random kart in overworld

This commit is contained in:
Deve 2018-08-22 21:10:28 +02:00
parent 4515038302
commit 9908b83f05

View File

@ -738,11 +738,6 @@ void KartSelectionScreen::playerConfirm(const int player_id)
return; return;
} }
if (player_id == PLAYER_ID_GAME_MASTER)
{
UserConfigParams::m_default_kart = selection;
}
if (m_kart_widgets[player_id].getKartInternalName().size() == 0 || if (m_kart_widgets[player_id].getKartInternalName().size() == 0 ||
m_kart_widgets[player_id].getKartInternalName() == RibbonWidget::NO_ITEM_ID) m_kart_widgets[player_id].getKartInternalName() == RibbonWidget::NO_ITEM_ID)
{ {
@ -1250,6 +1245,11 @@ void KartSelectionScreen::allPlayersDone()
} }
} }
} }
if (n == PLAYER_ID_GAME_MASTER)
{
UserConfigParams::m_default_kart = selected_kart;
}
race_manager->setPlayerKart(n, selected_kart); race_manager->setPlayerKart(n, selected_kart);