summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemBow.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-16 23:41:23 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-16 23:41:23 +0200
commita1fd0b0335a5b19af29a4862f4d0ac39bec6887f (patch)
treed91c0bf3f621e4e4a1341f1d7b6a00cf201243d3 /src/Items/ItemBow.h
parentThis isn't needed (diff)
downloadcuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.tar
cuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.tar.gz
cuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.tar.bz2
cuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.tar.lz
cuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.tar.xz
cuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.tar.zst
cuberite-a1fd0b0335a5b19af29a4862f4d0ac39bec6887f.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemBow.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Items/ItemBow.h b/src/Items/ItemBow.h
index a2f740ba7..d79fecd30 100644
--- a/src/Items/ItemBow.h
+++ b/src/Items/ItemBow.h
@@ -70,7 +70,14 @@ public:
}
cFastRandom Random;
- a_Player->GetWorld()->BroadcastSoundEffect("random.bow", (int)std::floor(a_Player->GetPosX() * 8.0), (int)std::floor(a_Player->GetPosY() * 8.0), (int)std::floor(a_Player->GetPosZ() * 8.0), 1.0F, 1.0F / (Random.NextFloat(1.0F) * 0.4F + 1.2F) + (float)Force * 0.5F);
+ a_Player->GetWorld()->BroadcastSoundEffect(
+ "random.bow",
+ (int)std::floor(a_Player->GetPosX() * 8.0),
+ (int)std::floor(a_Player->GetPosY() * 8.0),
+ (int)std::floor(a_Player->GetPosZ() * 8.0),
+ 1.0F,
+ 1.0F / (Random.NextFloat(1.0F) * 0.4F + 1.2F) + (float)Force * 0.5F
+ );
if (!a_Player->IsGameModeCreative())
{