From 35bd2009146e65567ae6d9b366b9b41879c8f7e4 Mon Sep 17 00:00:00 2001 From: kaczy Date: Sun, 18 Feb 2024 23:16:42 +0100 Subject: [PATCH] Assign default priorityZ for statics --- Shared/StaticTile.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shared/StaticTile.cs b/Shared/StaticTile.cs index 207269f..ca57f4b 100644 --- a/Shared/StaticTile.cs +++ b/Shared/StaticTile.cs @@ -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) @@ -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