summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSlab.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockSlab.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Blocks/BlockSlab.h b/src/Blocks/BlockSlab.h
index 8a3c998ec..7cd2c97b2 100644
--- a/src/Blocks/BlockSlab.h
+++ b/src/Blocks/BlockSlab.h
@@ -176,15 +176,13 @@ public:
virtual const char * GetStepSound(void) override
{
- BLOCKTYPE Block = GetSingleSlabType(m_BlockType);
- if (Block != m_BlockType)
- {
- return cBlockHandler::GetBlockHandler(Block)->GetStepSound();
- }
- else
+ switch (m_BlockType)
{
- return "step.stone";
+ case E_BLOCK_DOUBLE_STONE_SLAB: return "step.stone";
+ case E_BLOCK_DOUBLE_WOODEN_SLAB: return "step.wood";
}
+ ASSERT(!"Unhandled double slab type!");
+ return "";
}
} ;