diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-06-17 17:01:23 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-06-17 17:01:23 +0200 |
commit | 8de8768f02b5d9b066aa935d47c851552b6c7341 (patch) | |
tree | 0f63c2521eb4b390d74cb495fd7b6e752c5b9c62 /src | |
parent | Add door sound (diff) | |
download | cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.tar cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.tar.gz cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.tar.bz2 cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.tar.lz cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.tar.xz cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.tar.zst cuberite-8de8768f02b5d9b066aa935d47c851552b6c7341.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Blocks/BlockDoor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp index 2d7c849c6..934a01994 100644 --- a/src/Blocks/BlockDoor.cpp +++ b/src/Blocks/BlockDoor.cpp @@ -45,6 +45,12 @@ void cBlockDoorHandler::OnDestroyed(cChunkInterface & a_ChunkInterface, cWorldIn void cBlockDoorHandler::OnUse(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ) { + UNUSED(a_WorldInterface); + UNUSED(a_BlockFace); + UNUSED(a_CursorX); + UNUSED(a_CursorY); + UNUSED(a_CursorZ); + if (a_ChunkInterface.GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_WOODEN_DOOR) { ChangeDoor(a_ChunkInterface, a_BlockX, a_BlockY, a_BlockZ); |