kart selection screen : don't reload RTT scene if the selected kart hasn't changed

This commit is contained in:
Marianne Gagnon 2014-09-14 19:16:06 -04:00
parent 16dc973faa
commit 835b329c46

View File

@ -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);