Fix ticks time mixed up
This commit is contained in:
parent
c261735c2b
commit
f88ad497e9
@ -1029,7 +1029,7 @@ void RaceGUIBase::drawPlungerInFace(const Camera *camera, float dt)
|
||||
if(m_plunger_move_time < dt && m_plunger_state!=PLUNGER_STATE_FAST)
|
||||
{
|
||||
const float fast_time = 0.3f;
|
||||
if(kart->getBlockedByPlungerTicks()<fast_time)
|
||||
if(kart->getBlockedByPlungerTicks()<stk_config->time2Ticks(fast_time))
|
||||
{
|
||||
// First time we reach faste state: select random target point
|
||||
// at top of screen and set speed accordingly
|
||||
|
Loading…
Reference in New Issue
Block a user