Permalink
Browse files

Bug 737985: Don't update music if player is dead

  • Loading branch information...
1 parent b99c3ff commit bc991a341b059e2e78034aa221f794d81c2c5409 @sork sork committed Mar 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 client/js/game.js
View
@@ -880,7 +880,9 @@ function(InfoManager, BubbleManager, Renderer, Map, Animation, Sprite, AnimatedT
self.updatePlayerCheckpoint();
- self.audioManager.updateMusic();
+ if(!self.player.isDead) {
+ self.audioManager.updateMusic();
+ }
});
self.player.onStopPathing(function(x, y) {

0 comments on commit bc991a3

Please sign in to comment.