From 195d10108b80cbb4fd5f9c12673f692231e59026 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 18 Aug 2013 16:11:24 +0100 Subject: [PATCH] Emergency compilation fix! --- source/Piston.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Piston.cpp b/source/Piston.cpp index 175cfc19a..32b5fe9fc 100644 --- a/source/Piston.cpp +++ b/source/Piston.cpp @@ -119,7 +119,8 @@ void cPiston::ExtendPiston(int pistx, int pisty, int pistz) { m_World->BroadcastBlockAction(pistx, pisty, pistz, 0, pistonMeta, E_BLOCK_PISTON); } - + + char isSticky = (char)(pistonBlock == E_BLOCK_STICKY_PISTON) * 8; 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 ); m_World->SetServerBlock(extx, exty, extz, E_BLOCK_PISTON_EXTENSION, isSticky + pistonMeta);