Fix #702 (you could collect skid bonus while being rescued).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11630 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
f687659929
commit
4363adcabe
@ -173,6 +173,12 @@ float Skidding::getSteeringWhenSkidding(float steering) const
|
||||
void Skidding::update(float dt, bool is_on_ground,
|
||||
float steering, KartControl::SkidControl skidding)
|
||||
{
|
||||
// If a kart animation is shown, stop all skidding bonuses.
|
||||
if(m_kart->getKartAnimation())
|
||||
{
|
||||
reset();
|
||||
return;
|
||||
}
|
||||
m_skid_bonus_ready = false;
|
||||
if (is_on_ground)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user