Fixed bug where thunder sounds would continue playing after pausing the game

This commit is contained in:
Andreas Hellquist 2020-09-01 20:21:53 +02:00
parent ef911d8401
commit 6e17d51802

View File

@ -74,7 +74,8 @@ void Weather::update(float dt)
{
startLightning();
if (m_thunder_sound)
if (m_thunder_sound &&
World::getWorld()->getPhase() != WorldStatus::IN_GAME_MENU_PHASE)
{
m_thunder_sound->play();
}