End plunger animation early if has none told by state

This commit is contained in:
Benau 2018-10-26 17:48:58 +08:00
parent 89aea95b00
commit 8257f71a60

View File

@ -3076,7 +3076,8 @@ void Kart::updateGraphics(float dt)
if (m_graphical_view_blocked_by_plunger > 0.0f)
m_graphical_view_blocked_by_plunger -= dt;
if (m_graphical_view_blocked_by_plunger < 0.0f)
if (m_graphical_view_blocked_by_plunger < 0.0f ||
m_view_blocked_by_plunger == 0)
m_graphical_view_blocked_by_plunger = 0.0f;
#endif