Fixed #934. Wait before ready phase if sounds are disabled.
Jingle is actually sound rather than music. Before change it was disabled in preferences by both - music and sfx. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14199 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c40a403530
commit
d7d29dd2b8
@ -132,7 +132,7 @@ void WorldStatus::update(const float dt)
|
||||
case SETUP_PHASE:
|
||||
m_auxiliary_timer = 0.0f;
|
||||
m_phase = TRACK_INTRO_PHASE;
|
||||
if (UserConfigParams::m_music && m_play_racestart_sounds)
|
||||
if (m_play_racestart_sounds)
|
||||
{
|
||||
m_track_intro_sound->play();
|
||||
}
|
||||
@ -148,6 +148,9 @@ void WorldStatus::update(const float dt)
|
||||
if(m_track_intro_sound->getStatus()==SFXManager::SFX_PLAYING
|
||||
&& m_auxiliary_timer<3.5f)
|
||||
return;
|
||||
// Wait before ready phase if sounds are disabled
|
||||
if(!UserConfigParams::m_sfx && m_auxiliary_timer<3.0f)
|
||||
return;
|
||||
m_auxiliary_timer = 0.0f;
|
||||
if (m_play_racestart_sounds) m_prestart_sound->play();
|
||||
m_phase = READY_PHASE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user