Adds hue support to StaticTile (#1321)
### Summary Fixes missing properties while reading static tiles. ### Screenshots <img width="463" alt="Screenshot 2023-01-21 093050" src="https://user-images.githubusercontent.com/3953314/213879788-05d2ad7c-c197-4690-9f5b-660bded416cc.png"> Closes #1320
This commit is contained in:
parent
b18dfcbb63
commit
68bd9529f9
5 changed files with 51 additions and 8 deletions
|
|
@ -95,11 +95,15 @@ public static class IncomingTargetingPackets
|
|||
}
|
||||
}
|
||||
|
||||
int hue = 0;
|
||||
|
||||
for (var i = 0; !valid && i < tiles.Length; ++i)
|
||||
{
|
||||
if (tiles[i].Z == z && tiles[i].ID == graphic)
|
||||
var tile = tiles[i];
|
||||
if (tile.Z == z && tile.ID == graphic)
|
||||
{
|
||||
valid = true;
|
||||
hue = tile.Hue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -110,7 +114,7 @@ public static class IncomingTargetingPackets
|
|||
}
|
||||
else
|
||||
{
|
||||
toTarget = new StaticTarget(new Point3D(x, y, z), graphic);
|
||||
toTarget = new StaticTarget(new Point3D(x, y, z), graphic, hue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue