Fixed bug where thunder sounds would continue playing after pausing the game
This commit is contained in:
parent
ef911d8401
commit
6e17d51802
@ -74,7 +74,8 @@ void Weather::update(float dt)
|
|||||||
{
|
{
|
||||||
startLightning();
|
startLightning();
|
||||||
|
|
||||||
if (m_thunder_sound)
|
if (m_thunder_sound &&
|
||||||
|
World::getWorld()->getPhase() != WorldStatus::IN_GAME_MENU_PHASE)
|
||||||
{
|
{
|
||||||
m_thunder_sound->play();
|
m_thunder_sound->play();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user