소스 검색

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