Fix - 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:
hikerstk 2013-05-13 23:20:42 +00:00
parent bb5aa6c7b2
commit 1003e49984
2 changed files with 6 additions and 7 deletions
src

View File

@ -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 )

View File

@ -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)