while being rescued (and similar problems would have been with rescue while an explosion is shown). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
8d96260858
commit
b210ea2ea0
@ -364,7 +364,10 @@ void PlayerController::update(float dt)
|
||||
// We can't restrict rescue to fulfil isOnGround() (which would be more like
|
||||
// MK), since e.g. in the City track it is possible for the kart to end
|
||||
// up sitting on a brick wall, with all wheels in the air :((
|
||||
if ( m_controls->m_rescue )
|
||||
// Only accept rescue if there is no kart animation is already playing
|
||||
// (e.g. if an explosion happens, wait till the explosion is over before
|
||||
// starting any other animation).
|
||||
if ( m_controls->m_rescue && !m_kart->getKartAnimation() )
|
||||
{
|
||||
new RescueAnimation(m_kart);
|
||||
m_controls->m_rescue=false;
|
||||
|
Loading…
Reference in New Issue
Block a user