diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-15 14:27:01 +0100 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-15 14:27:01 +0100 |
commit | 9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3 (patch) | |
tree | 84b0c6c865a67fa45b362c9e8c68e7cef4142389 /source/Piston.cpp | |
parent | cChunk now tracks its neighbors as direct pointers; used in UnboundedRelGetBlock et al. (diff) | |
download | cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.tar cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.tar.gz cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.tar.bz2 cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.tar.lz cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.tar.xz cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.tar.zst cuberite-9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3.zip |
Diffstat (limited to 'source/Piston.cpp')
-rw-r--r-- | source/Piston.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Piston.cpp b/source/Piston.cpp index 9aa09a56e..ee4f030c9 100644 --- a/source/Piston.cpp +++ b/source/Piston.cpp @@ -83,6 +83,7 @@ void cPiston::ExtendPiston( int pistx, int pisty, int pistz ) oldz = pistz; } m_World->BroadcastBlockAction(pistx, pisty, pistz, 0, pistonMeta, E_BLOCK_PISTON); + m_World->BroadcastSoundEffect("tile.piston.out", pistx * 8, pisty * 8, pistz * 8, 0.5f, 0.7f); m_World->FastSetBlock( pistx, pisty, pistz, pistonBlock, pistonMeta | 0x8 ); int extx = pistx; @@ -108,6 +109,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz ) return; } m_World->BroadcastBlockAction(pistx, pisty, pistz, 1, pistonMeta & ~(8), E_BLOCK_PISTON); + m_World->BroadcastSoundEffect("tile.piston.in", pistx * 8, pisty * 8, pistz * 8, 0.5f, 0.7f); m_World->FastSetBlock(pistx, pisty, pistz, pistonBlock, pistonMeta & ~(8)); AddDir(pistx, pisty, pistz, pistonMeta & 7, 1) |