Browse Source

fixes #122

tags/v0.3.3^2
Shaun Kichenbrand 4 years ago
parent
commit
6a8f8c40b5
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/client/js/objects/objBase.js
  2. +1
    -1
      src/client/js/rendering/renderer.js

+ 1
- 1
src/client/js/objects/objBase.js View File

@@ -86,7 +86,7 @@ define([
return;

this.sprite.x = (this.x * scale) + (this.flipX ? scale : 0) + this.offsetX;
const oldY = this.sprite.x;
const oldY = this.sprite.y;
this.sprite.y = (this.y * scale) + this.offsetY;

if (this.sprite.width > scale) {


+ 1
- 1
src/client/js/rendering/renderer.js View File

@@ -785,7 +785,7 @@ define([
obj.sprite.texture = this.getTexture(obj.sheetName, obj.cell, obj.sprite.width / scaleMult);
},

reorder: function (sprite) {
reorder: function () {
this.layers.mobs.children.sort((a, b) => b.y - a.y);
},



Loading…
Cancel
Save