Use high precision for time2Ticks

This commit is contained in:
Benau 2023-11-12 11:29:41 +08:00
parent 7ecdc3efd7
commit 1ba1e7e59f

View File

@ -278,7 +278,7 @@ bool Swatter::updateAndTestFinished()
// Start squashing
m_animation_phase = SWATTER_TO_TARGET;
m_swatter_animation_ticks =
m_attachment->getTicksLeft() - stk_config->time2Ticks(0.167f);
m_attachment->getTicksLeft() - stk_config->time2Ticks(0.166666672f);
}
}
break;