summaryrefslogtreecommitdiffstats
path: root/source/Items
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-10 21:48:12 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-10 21:48:12 +0100
commit71abbb2f56c15634cca8615343d9699d0c50724d (patch)
treef56c254125256cc23f481b4ac18c843bd7470566 /source/Items
parentRemoved cStringMap. (diff)
downloadcuberite-71abbb2f56c15634cca8615343d9699d0c50724d.tar
cuberite-71abbb2f56c15634cca8615343d9699d0c50724d.tar.gz
cuberite-71abbb2f56c15634cca8615343d9699d0c50724d.tar.bz2
cuberite-71abbb2f56c15634cca8615343d9699d0c50724d.tar.lz
cuberite-71abbb2f56c15634cca8615343d9699d0c50724d.tar.xz
cuberite-71abbb2f56c15634cca8615343d9699d0c50724d.tar.zst
cuberite-71abbb2f56c15634cca8615343d9699d0c50724d.zip
Diffstat (limited to '')
-rw-r--r--source/Items/ItemBow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Items/ItemBow.h b/source/Items/ItemBow.h
index 7bce127b1..1c936ef81 100644
--- a/source/Items/ItemBow.h
+++ b/source/Items/ItemBow.h
@@ -36,6 +36,7 @@ public:
{
return false;
}
+
a_Player->StartChargingBow();
return true;
}
@@ -71,6 +72,7 @@ public:
return;
}
a_Player->GetWorld()->BroadcastSpawnEntity(*Arrow);
+ a_Player->GetWorld()->BroadcastSoundEffect("random.bow", (int)a_Player->GetPosX() * 8, (int)a_Player->GetPosY() * 8, (int)a_Player->GetPosZ() * 8, 0.5, (float)(0.75 + ((float)((Arrow->GetUniqueID() * 23) % 32)) / 64));
if (!a_Player->IsGameModeCreative())
{