Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Aug 13, 2024
1 parent e1a2f75 commit 3733e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/Map/StaticObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3733e6a

Please sign in to comment.