dreva in kamni top
This commit is contained in:
@@ -493,7 +493,10 @@ class NPC {
|
||||
if (!this.sprite) return;
|
||||
|
||||
if (this.lastDepthY === undefined || Math.abs(this.sprite.y - this.lastDepthY) > 0.1) {
|
||||
this.sprite.setDepth(this.sprite.y);
|
||||
const layerBase = this.iso.LAYER_OBJECTS || 200000;
|
||||
const depth = layerBase + this.sprite.y;
|
||||
|
||||
this.sprite.setDepth(depth);
|
||||
this.lastDepthY = this.sprite.y;
|
||||
|
||||
// Update attached elements depth
|
||||
|
||||
Reference in New Issue
Block a user