Prevents adding damage after round has ended

Because it created double round endings, which led to crashes.
Also moved inBetweenRound state from PlayerController to GameController.
This commit is contained in:
logsol 2016-10-01 19:12:52 +02:00
parent c068592915
commit 3a5af058ef
7 changed files with 36 additions and 26 deletions

View file

@ -16,9 +16,9 @@ function (Parent, Nc, Settings) {
this.healthBarViewVisible = false;
this.initHealthBar();
this.ncTokens = [
this.ncTokens = (this.ncTokens || []).concat([
Nc.on(Nc.ns.client.game.events.render, this.render, this)
];
]);
}
Player.prototype = Object.create(Parent.prototype);