summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSlab.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-02-28 22:32:10 +0100
committerHowaner <franzi.moos@googlemail.com>2014-02-28 22:32:10 +0100
commit0274db0e14adc269303380f41a54ffa07422317b (patch)
tree4b88d8dfffbddf58be86d3c06dfec17a20411e61 /src/Blocks/BlockSlab.h
parentMerge branch 'master' into Slabs (diff)
downloadcuberite-0274db0e14adc269303380f41a54ffa07422317b.tar
cuberite-0274db0e14adc269303380f41a54ffa07422317b.tar.gz
cuberite-0274db0e14adc269303380f41a54ffa07422317b.tar.bz2
cuberite-0274db0e14adc269303380f41a54ffa07422317b.tar.lz
cuberite-0274db0e14adc269303380f41a54ffa07422317b.tar.xz
cuberite-0274db0e14adc269303380f41a54ffa07422317b.tar.zst
cuberite-0274db0e14adc269303380f41a54ffa07422317b.zip
Diffstat (limited to 'src/Blocks/BlockSlab.h')
-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 "";
}
} ;