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

@ -167,7 +167,17 @@ function (Parent, Layer, Settings, Nc) {
};
RubeDoll.prototype.render = function() {
Parent.prototype.render.call(this);
//Parent.prototype.render.call(this);
Nc.trigger(Nc.ns.client.view.mesh.update,
this.layerId,
this.mesh,
{
x: this.body.GetPosition().x * Settings.RATIO,
y: this.body.GetPosition().y * Settings.RATIO,
rotation: this.body.GetAngle()
}
);
if(this.limbs) {
for(var name in this.limbMeshes) {
@ -187,6 +197,10 @@ function (Parent, Layer, Settings, Nc) {
};
RubeDoll.prototype.flip = function(direction) {
return;
Parent.prototype.flip.call(this, direction);
// flipping depth of right body side arm/leg images with left