Skip to content

Commit

Permalink
Cleanup in RoofLayerRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Oct 30, 2024
1 parent 4495d93 commit ad19a8f
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ public override void RenderElementAt(SpriteBatch spriteBatch, int row, int col,
{
var gfxCandidates = new List<int>();
if (CurrentMap.GFX[MapLayer.Roof][row - 1, col] > 0)
{
gfxCandidates.Add(CurrentMap.GFX[MapLayer.Roof][row - 1, col]);
if (row == CurrentMap.Properties.Height)
}

if (row == CurrentMap.Properties.Height && CurrentMap.GFX[MapLayer.Roof][row, col] > 0)
{
if (CurrentMap.GFX[MapLayer.Roof][row, col] > 0)
gfxCandidates.Add(CurrentMap.GFX[MapLayer.Roof][row, col]);
gfxCandidates.Add(CurrentMap.GFX[MapLayer.Roof][row, col]);
}

//int gfxNum = CurrentMap.GFX[MapLayer.Roof][row-1, col];
foreach (var gfxNum in gfxCandidates)
{
var gfx = _nativeGraphicsManager.TextureFromResource(GFXTypes.MapWallTop, gfxNum, true);
Expand Down

0 comments on commit ad19a8f

Please sign in to comment.