diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-13 02:08:02 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-13 02:08:02 +0200 |
commit | d529971e279609ae928d9077404b95bd595b5e52 (patch) | |
tree | 34aeac132b9cb73b7b68a1285815c168506e247c /src/Blocks/BlockPiston.cpp | |
parent | Only one instance of server can be started (diff) | |
download | cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.gz cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.bz2 cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.lz cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.xz cuberite-d529971e279609ae928d9077404b95bd595b5e52.tar.zst cuberite-d529971e279609ae928d9077404b95bd595b5e52.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockPiston.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockPiston.cpp b/src/Blocks/BlockPiston.cpp index 6f8d8be3e..ec480aaea 100644 --- a/src/Blocks/BlockPiston.cpp +++ b/src/Blocks/BlockPiston.cpp @@ -124,7 +124,7 @@ void cBlockPistonHandler::ExtendPiston(int a_BlockX, int a_BlockY, int a_BlockZ, } a_World->BroadcastBlockAction(a_BlockX, a_BlockY, a_BlockZ, 0, pistonMeta, pistonBlock); - a_World->BroadcastSoundEffect("tile.piston.out", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 0.5f, 0.7f); + a_World->BroadcastSoundEffect("tile.piston.out", (double)a_BlockX, (double)a_BlockY, (double)a_BlockZ, 0.5f, 0.7f); // Drop the breakable block in the line, if appropriate: AddPistonDir(a_BlockX, a_BlockY, a_BlockZ, pistonMeta, dist + 1); // "a_Block" now at the breakable / empty block @@ -198,7 +198,7 @@ void cBlockPistonHandler::RetractPiston(int a_BlockX, int a_BlockY, int a_BlockZ AddPistonDir(a_BlockX, a_BlockY, a_BlockZ, pistonMeta, -1); a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, pistonBlock, pistonMeta & ~(8)); a_World->BroadcastBlockAction(a_BlockX, a_BlockY, a_BlockZ, 1, pistonMeta & ~(8), pistonBlock); - a_World->BroadcastSoundEffect("tile.piston.in", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 0.5f, 0.7f); + a_World->BroadcastSoundEffect("tile.piston.in", (double)a_BlockX, (double)a_BlockY, (double)a_BlockZ, 0.5f, 0.7f); AddPistonDir(a_BlockX, a_BlockY, a_BlockZ, pistonMeta, 1); // Retract the extension, pull block if appropriate |