End plunger animation early if has none told by state
This commit is contained in:
parent
89aea95b00
commit
8257f71a60
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user