From 3733e6adfcd487567a8012f78ec9015927a5f1b9 Mon Sep 17 00:00:00 2001 From: kaczy Date: Tue, 13 Aug 2024 11:01:48 +0200 Subject: [PATCH] Fix --- CentrED/Map/StaticObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CentrED/Map/StaticObject.cs b/CentrED/Map/StaticObject.cs index 609db83..ffbf167 100644 --- a/CentrED/Map/StaticObject.cs +++ b/CentrED/Map/StaticObject.cs @@ -15,6 +15,7 @@ public StaticObject(StaticTile tile) { Tile = StaticTile = tile; + RealBounds = Application.CEDGame.MapManager.Arts.GetRealArtBounds(Tile.Id); UpdateId(Tile.Id); UpdatePos(tile.X, tile.Y, tile.Z); UpdateHue(tile.Hue); @@ -51,7 +52,6 @@ public void UpdateId(ushort newId) Texture = spriteInfo.Texture; TextureBounds = spriteInfo.UV; - RealBounds = Application.CEDGame.MapManager.Arts.GetRealArtBounds(newId); float onePixel = Math.Max(1.0f / Texture.Width, Epsilon.value); var texX = TextureBounds.X / (float)Texture.Width + onePixel / 2f;