Skip to content

Commit

Permalink
Fix draw offset of crates
Browse files Browse the repository at this point in the history
Fixes #217
  • Loading branch information
Rampastring committed Jan 6, 2025
1 parent e285c70 commit 0824ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/TSMapEditor/Models/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public override int GetYDrawOffset()
if (OverlayType.IsVeinholeMonster)
return Constants.CellSizeY * -2;

if (OverlayType.Tiberium || OverlayType.Wall || OverlayType.IsVeins)
if (OverlayType.Tiberium || OverlayType.Wall || OverlayType.IsVeins || OverlayType.Crate)
return Constants.CellSizeY / -2;

return 0;
Expand Down
1 change: 1 addition & 0 deletions src/TSMapEditor/Models/OverlayType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public OverlayType(string iniName) : base(iniName)
public string Image { get; set; }
public OverlayArtConfig ArtConfig { get; } = new OverlayArtConfig();
public IArtConfig GetArtConfig() => ArtConfig;
public bool Crate { get; set; }
public bool WaterBound { get; set; }
public bool Wall { get; set; }
public bool RadarInvisible { get; set; }
Expand Down

0 comments on commit 0824ca2

Please sign in to comment.