Skip to content

Commit

Permalink
Assign default priorityZ for statics
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Feb 18, 2024
1 parent fef6ebd commit 35bd200
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Shared/StaticTile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public StaticTile(ushort id, ushort x, ushort y, sbyte z, ushort hue, StaticBloc

LocalX = (byte)(x & 0x7);
LocalY = (byte)(y & 0x7);

PriorityZ = _z;
}

public StaticTile(BinaryReader reader, StaticBlock? block = null, ushort blockX = 0, ushort blockY = 0)
Expand All @@ -39,6 +41,8 @@ public StaticTile(BinaryReader reader, StaticBlock? block = null, ushort blockX

_x = (ushort)(blockX * 8 + LocalX);
_y = (ushort)(blockY * 8 + LocalY);

PriorityZ = _z;
}

public StaticBlock? Block
Expand Down

0 comments on commit 35bd200

Please sign in to comment.