瀏覽代碼

Fix end mute bug;

bjorn 10 年之前
父節點
當前提交
51149f3fa6
共有 1 個文件被更改,包括 3 次插入1 次删除
  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