Permalink
Browse files

Bug 736987: Replace revive panel with timeout message when appropriate

  • Loading branch information...
1 parent 1eb4612 commit 28cae2476928b0cde51e1018f99864b1f167f157 @sork sork committed Mar 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 client/js/game.js
View
4 client/js/game.js
@@ -1443,7 +1443,9 @@ function(InfoManager, BubbleManager, Renderer, Map, Animation, Sprite, AnimatedT
});
self.client.onDisconnected(function(message) {
- self.player.die();
+ if(self.player) {
+ self.player.die();
+ }
if(self.disconnect_callback) {
self.disconnect_callback(message);
}

0 comments on commit 28cae24

Please sign in to comment.