From 717ad90700064130897540161be968781163b961 Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Sat, 25 May 2013 10:38:58 +0000 Subject: Added sound to the vaporize simulator. FS #315 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1505 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Simulator/VaporizeFluidSimulator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/Simulator') diff --git a/source/Simulator/VaporizeFluidSimulator.cpp b/source/Simulator/VaporizeFluidSimulator.cpp index 10466c454..792783915 100644 --- a/source/Simulator/VaporizeFluidSimulator.cpp +++ b/source/Simulator/VaporizeFluidSimulator.cpp @@ -27,7 +27,7 @@ void cVaporizeFluidSimulator::AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, return; } int RelX = a_BlockX - a_Chunk->GetPosX() * cChunkDef::Width; - int RelZ = a_BlockZ - a_Chunk->GetPosZ() * cChunkDef::Width; + int RelZ = a_BlockZ - a_Chunk->GetPosZ() * cChunkDef::Width; BLOCKTYPE BlockType = a_Chunk->GetBlock(RelX, a_BlockY, RelZ); if ( (BlockType == m_FluidBlock) || @@ -35,6 +35,7 @@ void cVaporizeFluidSimulator::AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, ) { a_Chunk->SetBlock(RelX, a_BlockY, RelZ, E_BLOCK_AIR, 0); + a_Chunk->BroadcastSoundEffect("random.fizz", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 1.0f, 0.6f); } } -- cgit v1.2.3