Try to fix speedy end controller in network race
This commit is contained in:
parent
ce58014cab
commit
9e6ebe6097
@ -104,7 +104,6 @@ EndController::EndController(AbstractKart *kart,
|
|||||||
#ifdef AI_DEBUG
|
#ifdef AI_DEBUG
|
||||||
m_debug_sphere = irr_driver->getSceneManager()->addSphereSceneNode(1);
|
m_debug_sphere = irr_driver->getSceneManager()->addSphereSceneNode(1);
|
||||||
#endif
|
#endif
|
||||||
m_kart->setSlowdown(MaxSpeed::MS_DECREASE_AI, 0.3f, 2);
|
|
||||||
|
|
||||||
// Set the name of the previous controller as this controller name, otherwise
|
// Set the name of the previous controller as this controller name, otherwise
|
||||||
// we get the incorrect name when printing statistics in profile mode.
|
// we get the incorrect name when printing statistics in profile mode.
|
||||||
@ -195,6 +194,9 @@ void EndController::update(int ticks)
|
|||||||
m_controls->setBrake(m_kart->getSpeed()>0);
|
m_controls->setBrake(m_kart->getSpeed()>0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Keep update slow down in case for network rewind overwrite it
|
||||||
|
m_kart->setSlowdown(MaxSpeed::MS_DECREASE_AI, 0.3f, 2);
|
||||||
|
|
||||||
/*Get information that is needed by more than 1 of the handling funcs*/
|
/*Get information that is needed by more than 1 of the handling funcs*/
|
||||||
//Detect if we are going to crash with the track and/or kart
|
//Detect if we are going to crash with the track and/or kart
|
||||||
calcSteps();
|
calcSteps();
|
||||||
|
Loading…
Reference in New Issue
Block a user