mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
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:
parent
c068592915
commit
3a5af058ef
7 changed files with 36 additions and 26 deletions
|
|
@ -23,13 +23,12 @@ function (Parent, RubeLoader, Box2D, Settings, Assert, Nc, Matrix, RubeDollJson)
|
|||
this.limits = [];
|
||||
|
||||
var chest = null;
|
||||
var world = physicsEngine.getWorld();
|
||||
this.rubeLoader = new RubeLoader(RubeDollJson, world);
|
||||
this.rubeLoader = new RubeLoader(RubeDollJson, physicsEngine.getWorldForRubeLoader());
|
||||
|
||||
this.loadRubeDollFromScene(options);
|
||||
|
||||
Parent.call(this, physicsEngine, uid, options);
|
||||
world.DestroyBody(this.body);
|
||||
physicsEngine.destroyBody(this.body);
|
||||
this.body = this.limbs.chest;
|
||||
delete this.limbs.chest;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue