Use resetMaxSpeed now that the material and physics update order are correct

This commit is contained in:
Benau 2018-10-17 16:24:03 +08:00
parent 76602ac65a
commit c1f10d79cb
2 changed files with 5 additions and 3 deletions

View File

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

View File

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