From 30c8470a524f5d09f157d5c1c59eb72c205d5085 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Tue, 19 Sep 2017 09:12:54 -0500 Subject: 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 --- src/Items/ItemBow.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Items/ItemBow.h') diff --git a/src/Items/ItemBow.h b/src/Items/ItemBow.h index 71f5bc378..241df0c3c 100644 --- a/src/Items/ItemBow.h +++ b/src/Items/ItemBow.h @@ -77,9 +77,7 @@ public: } a_Player->GetWorld()->BroadcastSoundEffect( "entity.arrow.shoot", - a_Player->GetPosX(), - a_Player->GetPosY(), - a_Player->GetPosZ(), + a_Player->GetPosition(), 0.5, static_cast(Force) ); -- cgit v1.2.3