only adds lastMovedBy when there was no damage - fixes #99

This commit is contained in:
logsol 2015-08-02 11:38:45 +02:00
parent e370adf746
commit 0edde06d67
8 changed files with 403 additions and 21 deletions

View file

@ -352,7 +352,7 @@ function (Parent, Box2D, Settings, Nc, Assert, Options, ItemSettings) {
chestPosition.y + this.options.limbs.head.y / Settings.RATIO
);
this.limbs.head.SetPosition(position);
this.limbs.head.SetAngle((this.options.grabAngle || 0) * direction);
this.limbs.head.SetAngle((this.options.grabAngle || 0.0) * direction);
};
RagDoll.prototype.throw = function(options, carrierVelocity) {