Eliminated karts in GPs get 0 points. Fixes #2177
This commit is contained in:
@@ -837,8 +837,15 @@ void RaceResultGUI::determineGPLayout()
|
||||
ri->m_y_pos = (float)(m_top+rank*m_distance_between_rows);
|
||||
int p = race_manager->getKartPrevScore(kart_id);
|
||||
ri->m_current_displayed_points = (float)p;
|
||||
ri->m_new_points =
|
||||
(float)race_manager->getPositionScore(kart->getPosition());
|
||||
if (kart->isEliminated())
|
||||
{
|
||||
ri->m_new_points = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
ri->m_new_points =
|
||||
(float)race_manager->getPositionScore(kart->getPosition());
|
||||
}
|
||||
}
|
||||
|
||||
// Now update the GP ranks, and determine the new position
|
||||
|
||||
Reference in New Issue
Block a user