DungeonRooms: Replaced explicit switch with CanBeTerraformed().
This commit is contained in:
parent
98974412fa
commit
2d569ce6dd
@ -114,18 +114,10 @@ protected:
|
|||||||
{
|
{
|
||||||
for (int x = RelStartX; x < RelEndX; x++)
|
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:
|
a_ChunkDesc.SetBlockType(x, y, z, a_DstBlockType);
|
||||||
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)
|
|
||||||
} // for x
|
} // for x
|
||||||
} // for z
|
} // for z
|
||||||
} // for z
|
} // for z
|
||||||
|
Loading…
Reference in New Issue
Block a user