Avoid incorrect kart positions in gpwin cutscene for very high dt

This commit is contained in:
Deve 2019-04-08 21:09:44 +02:00
parent 44fdd1ec85
commit 9ba4f023a1

View File

@ -230,8 +230,7 @@ void GrandPrixWin::onUpdate(float dt)
{
if (m_kart_node[k] != NULL)
{
if (fabsf(m_kart_x[k] - KARTS_PODIUM_X[k]) > dt)
if (m_kart_x[k] != KARTS_PODIUM_X[k])
{
if (m_kart_x[k] < KARTS_PODIUM_X[k] - dt)
m_kart_x[k] += dt;