From 9eed83c33ae8c2bbb1781a01f05326dba667f4e3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 11 Sep 2012 12:01:34 +0000 Subject: Merged in a patch for sounds by l0udPL http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/blocks/BlockSlab.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source/blocks/BlockSlab.h') diff --git a/source/blocks/BlockSlab.h b/source/blocks/BlockSlab.h index f6443ff91..11d1933c3 100644 --- a/source/blocks/BlockSlab.h +++ b/source/blocks/BlockSlab.h @@ -39,4 +39,13 @@ public: } return result; } -}; \ No newline at end of file + + virtual AString GetStepSound(void) override + { + if (m_BlockID == E_BLOCK_WOODEN_SLAB || m_BlockID ==E_BLOCK_DOUBLE_WOODEN_SLAB) + return "step.wood"; + + else + return "step.stone"; + } +}; -- cgit v1.2.3