From 6e17d5180233e9b271e3add6aa806d67845f9c79 Mon Sep 17 00:00:00 2001 From: Andreas Hellquist Date: Tue, 1 Sep 2020 20:21:53 +0200 Subject: [PATCH] Fixed bug where thunder sounds would continue playing after pausing the game --- src/graphics/weather.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphics/weather.cpp b/src/graphics/weather.cpp index f462bb591..095a1246b 100644 --- a/src/graphics/weather.cpp +++ b/src/graphics/weather.cpp @@ -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(); }