Dungeon Building p8

This commit is contained in:
dingo
2025-12-28 14:08:57 -05:00
parent 0bdd9b0ffc
commit 1b3e47e5c2
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -436,7 +436,7 @@ public class DungeonGeneratorV2
if (x >= 0 && x < MapWidth && ty >= 0 && ty < MapHeight && layout.Tiles[x, ty] == 0)
{
layout.Tiles[x, ty] = floorId;
if (floorId > 1)
if (floorId > 0 && sheetId > 0)
{
layout.TileDetails.Add(new PlacedTile
{
@@ -465,7 +465,7 @@ public class DungeonGeneratorV2
if (tx >= 0 && tx < MapWidth && y >= 0 && y < MapHeight && layout.Tiles[tx, y] == 0)
{
layout.Tiles[tx, y] = floorId;
if (floorId > 1)
if (floorId > 0 && sheetId > 0)
{
layout.TileDetails.Add(new PlacedTile
{