diff options
author | Mattes D <github@xoft.cz> | 2014-08-26 16:13:46 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-26 16:13:46 +0200 |
commit | 2d569ce6ddae1e4d133ed79feeaefa53b5d6999b (patch) | |
tree | 33c869b7398494a654352c246298552debf1cbfb /src/Generating | |
parent | Merge remote-tracking branch 'origin/master' into DungeonRoomsFinisher (diff) | |
download | cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.tar cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.tar.gz cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.tar.bz2 cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.tar.lz cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.tar.xz cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.tar.zst cuberite-2d569ce6ddae1e4d133ed79feeaefa53b5d6999b.zip |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/DungeonRoomsFinisher.cpp | 14 |
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 |