Only player zipper sound once per material, i.e. avoid the
machine gun effect on the zipper ramps in canyon (bug 3109198). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6603 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9bed1f01c5
commit
df1f8c631b
@ -369,7 +369,11 @@ void PlayerController::finishedRace(float time)
|
|||||||
*/
|
*/
|
||||||
void PlayerController::handleZipper()
|
void PlayerController::handleZipper()
|
||||||
{
|
{
|
||||||
if (m_wee_sound->getStatus() != SFXManager::SFX_PLAYING)
|
// Only play a zipper sound if it's not already playing, and
|
||||||
|
// if the material has changed (to avoid machine gun effect
|
||||||
|
// on conveyor belt zippers).
|
||||||
|
if (m_wee_sound->getStatus() != SFXManager::SFX_PLAYING &&
|
||||||
|
m_kart->getMaterial()!=m_kart->getLastMaterial())
|
||||||
{
|
{
|
||||||
m_wee_sound->play();
|
m_wee_sound->play();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user