summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-02-14 22:49:23 +0100
committerHowaner <franzi.moos@googlemail.com>2014-02-16 01:19:30 +0100
commitf3bd288f020a8f004179513c0e260ac0f2855767 (patch)
tree174babd6e46d2979bb9d00124ac4cb3109d3e6c7 /src/Entities/Player.cpp
parentSet max. Players in the Tablist to 60 (diff)
downloadcuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar
cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.gz
cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.bz2
cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.lz
cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.xz
cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.tar.zst
cuberite-f3bd288f020a8f004179513c0e260ac0f2855767.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 6e3db5194..be26e4f6e 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1059,6 +1059,15 @@ void cPlayer::CloseWindowIfID(char a_WindowID, bool a_CanRefuse)
+void cPlayer::PlaySoundEffect(const AString & a_SoundName, float a_Volume, float a_Pitch)
+{
+ m_ClientHandle->SendSoundEffect(a_SoundName, (int) (GetPosX() * 8.0), (int) (GetPosY() * 8.0), (int) (GetPosZ() * 8.0), a_Volume, a_Pitch);
+}
+
+
+
+
+
void cPlayer::SetLastBlockActionTime()
{
if (m_World != NULL)