From 7e0bb71d644068f91c3df47a81829b94bae10dfe Mon Sep 17 00:00:00 2001 From: Alayan-stk-2 Date: Fri, 13 Apr 2018 04:34:45 +0200 Subject: [PATCH] Allow instantSpeedIncrease use from Kart --- src/karts/kart.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index a4b198ea1..949fd15ba 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -466,6 +466,15 @@ void Kart::increaseMaxSpeed(unsigned int category, float add_speed, fade_out_time); } // increaseMaxSpeed +// ----------------------------------------------------------------------------- +void Kart::instantSpeedIncrease(unsigned int category, float add_max_speed, + float speed_boost, float engine_force, float duration, + float fade_out_time) +{ + m_max_speed->instantSpeedIncrease(category, add_max_speed, speed_boost, + engine_force, duration, fade_out_time); +} // instantSpeedIncrease + // ----------------------------------------------------------------------------- void Kart::setSlowdown(unsigned int category, float max_speed_fraction, float fade_in_time)