kart selection screen : don't reload RTT scene if the selected kart hasn't changed
This commit is contained in:
parent
16dc973faa
commit
835b329c46
@ -904,6 +904,9 @@ void KartHoverListener::onSelectionChanged(DynamicRibbonWidget* theWidget,
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_parent->m_kart_widgets[playerID].getKartInternalName() == selectionID)
|
||||
return; // already selected
|
||||
|
||||
m_parent->updateKartWidgetModel(playerID, selectionID, selectionText);
|
||||
m_parent->m_kart_widgets[playerID].setKartInternalName(selectionID);
|
||||
m_parent->updateKartStats(playerID, selectionID);
|
||||
|
Loading…
Reference in New Issue
Block a user