Explorar o código

Fix end mute bug;

bjorn %!s(int64=10) %!d(string=hai) anos
pai
achega
51149f3fa6
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      pigeon.lua

+ 3 - 1
pigeon.lua

@@ -197,7 +197,9 @@ function Pigeon:update()
     if not ctx.hud.win.active then
       ctx.hud:activateWin()
       ctx.sound:play('win')
-      ctx.backgroundSound:setVolume(.1)
+      if not ctx.sound.muted then
+        ctx.backgroundSound:setVolume(.1)
+      end
     end
   end
 end