From a22fbcbbc8a80efb070e832340537d9be2cb2d40 Mon Sep 17 00:00:00 2001 From: Jeena Date: Sun, 19 Apr 2015 11:23:19 +0200 Subject: [PATCH] removed console logs --- app/Game/Channel/Channel.js | 1 - app/Game/Channel/Player.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Game/Channel/Channel.js b/app/Game/Channel/Channel.js index e7ca3e6..c4d6287 100755 --- a/app/Game/Channel/Channel.js +++ b/app/Game/Channel/Channel.js @@ -77,7 +77,6 @@ levelUid: gameControllerOptions.levelUid }; - console.log("beginRound") this.broadcastControlCommand("beginRound", clientGameControllerOptions); }; diff --git a/app/Game/Channel/Player.js b/app/Game/Channel/Player.js index d134ce9..26e5c51 100755 --- a/app/Game/Channel/Player.js +++ b/app/Game/Channel/Player.js @@ -65,12 +65,12 @@ function (Parent, Nc) { if(this.stats.health < 0) this.stats.health = 0; + this.broadcastStats(); + if(this.stats.health <= 0) { if(enemy != this) enemy.score(); this.kill(enemy, byItem); } - - this.broadcastStats(); }; Player.prototype.spawn = function(x, y) {