summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Generating/DungeonRoomsFinisher.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/Generating/DungeonRoomsFinisher.cpp b/src/Generating/DungeonRoomsFinisher.cpp
index 37409d486..c662ca6b4 100644
--- a/src/Generating/DungeonRoomsFinisher.cpp
+++ b/src/Generating/DungeonRoomsFinisher.cpp
@@ -114,18 +114,10 @@ protected:
{
for (int x = RelStartX; x < RelEndX; x++)
{
- switch (a_ChunkDesc.GetBlockType(x, y, z))
+ if (cBlockInfo::CanBeTerraformed(a_ChunkDesc.GetBlockType(x, y, z)))
{
- case E_BLOCK_STONE:
- case E_BLOCK_DIRT:
- case E_BLOCK_GRASS:
- case E_BLOCK_GRAVEL:
- case E_BLOCK_SAND:
- {
- a_ChunkDesc.SetBlockType(x, y, z, a_DstBlockType);
- break;
- }
- } // switch (GetBlockType)
+ a_ChunkDesc.SetBlockType(x, y, z, a_DstBlockType);
+ }
} // for x
} // for z
} // for z