Make the instant boost from skidding less exploitable

This commit is contained in:
Alayan-stk-2 2018-06-23 16:08:43 +02:00 committed by GitHub
parent 42e1e4eade
commit 33cdec4d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,7 +463,7 @@ void Skidding::update(int ticks, bool is_on_ground,
->setCreationRateRelative(KartGFX::KGFX_SKIDR, 1.0f);
m_kart->m_max_speed->
instantSpeedIncrease(MaxSpeed::MS_INCREASE_SKIDDING,
bonus_speed, bonus_speed,
bonus_speed, bonus_speed/2,
bonus_force,
stk_config->time2Ticks(bonus_time),
/*fade-out-time*/ stk_config->time2Ticks(1.0f));
@ -528,4 +528,3 @@ unsigned int Skidding::getSkidBonus(float *bonus_time,
}
return (unsigned int) kp->getSkidBonusSpeed().size();
} // getSkidBonusForce