Skip to content

Commit

Permalink
Bug 737985: Don't update music if player is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
sork committed Mar 23, 2012
1 parent b99c3ff commit bc991a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bc991a3

Please sign in to comment.