Use resetMaxSpeed now that the material and physics update order are correct
This commit is contained in:
parent
76602ac65a
commit
c1f10d79cb
@ -1351,8 +1351,8 @@ void Kart::update(int ticks)
|
||||
|
||||
m_powerup->update(ticks);
|
||||
|
||||
// Reset any instand speed increase in the bullet kart
|
||||
m_vehicle->setMinSpeed(0);
|
||||
// Reset any instant speed increase in the bullet kart
|
||||
m_vehicle->resetMaxSpeed();
|
||||
|
||||
if (m_bubblegum_ticks > 0)
|
||||
{
|
||||
|
@ -263,8 +263,10 @@ void KartRewinder::restoreState(BareNetworkString *buffer, int count)
|
||||
setTrans(m_transfrom_from_network);
|
||||
}
|
||||
|
||||
m_vehicle->setMinSpeed(buffer->getFloat());
|
||||
//m_vehicle->setMinSpeed(buffer->getFloat());
|
||||
// Unused now
|
||||
float time_rot = buffer->getFloat();
|
||||
time_rot = buffer->getFloat();
|
||||
// Set timed rotation divides by time_rot
|
||||
m_vehicle->setTimedRotation(time_rot, time_rot*buffer->getVec3());
|
||||
m_vehicle->setCushioningDisableTime(buffer->getUInt8());
|
||||
|
Loading…
Reference in New Issue
Block a user