Avoid incorrect kart positions in gpwin cutscene for very high dt
This commit is contained in:
parent
44fdd1ec85
commit
9ba4f023a1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user