summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-30 20:24:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-30 20:24:32 +0300
commit1a152bbcfc63445287cc96bbbff325cce3092789 (patch)
treed9a3baa2191b597563009bbaa5e539a69d1ff9a8 /src/localplayer.cpp
parentdb4e377024c8116b6095892469bfad1c1e5482e9 (diff)
downloadplus-1a152bbcfc63445287cc96bbbff325cce3092789.tar.gz
plus-1a152bbcfc63445287cc96bbbff325cce3092789.tar.bz2
plus-1a152bbcfc63445287cc96bbbff325cce3092789.tar.xz
plus-1a152bbcfc63445287cc96bbbff325cce3092789.zip
Add support for different sounds from different weapons.
Also fixed sounds from non local player.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 890191bcc..a23811bd3 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1350,6 +1350,7 @@ void LocalPlayer::attack(Being *const target, const bool keep,
{
setAction(ATTACK);
+/*
if (mEquippedWeapon)
{
std::string soundFile = mEquippedWeapon->getSound(
@@ -1361,7 +1362,7 @@ void LocalPlayer::attack(Being *const target, const bool keep,
{
sound.playSfx(paths.getValue("attackSfxFile", "fist-swish.ogg"));
}
-
+*/
if (!Client::limitPackets(PACKET_ATTACK))
return;