diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-02-28 22:32:10 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-02-28 22:32:10 +0100 |
commit | 0274db0e14adc269303380f41a54ffa07422317b (patch) | |
tree | 4b88d8dfffbddf58be86d3c06dfec17a20411e61 /src/Blocks/BlockSlab.h | |
parent | Merge branch 'master' into Slabs (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Blocks/BlockSlab.h | 12 |
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 ""; } } ; |