Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)
* Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
This commit is contained in:
@@ -260,9 +260,7 @@ void cFloodyFluidSimulator::SpreadToNeighbor(cChunk * a_NearChunk, int a_RelX, i
|
||||
|
||||
a_NearChunk->BroadcastSoundEffect(
|
||||
"block.lava.extinguish",
|
||||
static_cast<double>(BlockX),
|
||||
static_cast<double>(a_RelY),
|
||||
static_cast<double>(BlockZ),
|
||||
Vector3d(BlockX, a_RelY, BlockZ),
|
||||
0.5f,
|
||||
1.5f
|
||||
);
|
||||
@@ -282,9 +280,7 @@ void cFloodyFluidSimulator::SpreadToNeighbor(cChunk * a_NearChunk, int a_RelX, i
|
||||
|
||||
a_NearChunk->BroadcastSoundEffect(
|
||||
"block.lava.extinguish",
|
||||
static_cast<double>(BlockX),
|
||||
static_cast<double>(a_RelY),
|
||||
static_cast<double>(BlockZ),
|
||||
Vector3d(BlockX, a_RelY, BlockZ),
|
||||
0.5f,
|
||||
1.5f
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user