Fix #969 - honk sound played when last item is fired. Thanks to unitraxx.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
bb5aa6c7b2
commit
1003e49984
src
@ -379,7 +379,12 @@ void Powerup::use()
|
||||
break;
|
||||
|
||||
case PowerupManager::POWERUP_NOTHING:
|
||||
default : break ;
|
||||
{
|
||||
if(!m_owner->getKartAnimation())
|
||||
m_owner->beep();
|
||||
}
|
||||
break;
|
||||
default : break;
|
||||
}
|
||||
|
||||
if ( m_number <= 0 )
|
||||
|
@ -358,12 +358,6 @@ void PlayerController::update(float dt)
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_controls->m_fire && !m_kart->getKartAnimation())
|
||||
{
|
||||
if (m_kart->getPowerup()->getType()==PowerupManager::POWERUP_NOTHING)
|
||||
m_kart->beep();
|
||||
}
|
||||
|
||||
// look backward when the player requests or
|
||||
// if automatic reverse camera is active
|
||||
if (m_camera->getMode() != Camera::CM_FINAL)
|
||||
|
Loading…
Reference in New Issue
Block a user