From e50c6b9fbcd7713b990012f17665efeb2a284dd2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Apr 2013 18:41:28 +0300 Subject: Remove unused defaults for attack sounds. --- src/defaults.cpp | 2 -- src/localplayer.cpp | 14 -------------- 2 files changed, 16 deletions(-) (limited to 'src') diff --git a/src/defaults.cpp b/src/defaults.cpp index f70788eca..3e367db8b 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -398,8 +398,6 @@ DefaultsData* getPathsDefaults() AddDEF("maps", "maps/"); AddDEF("sfx", "sfx/"); - AddDEF("attackSfxFile", "fist-swish.ogg"); - AddDEF("missSfxFile", "fist-swish.ogg"); AddDEF("music", "music/"); AddDEF("wallpapers", "graphics/images/"); diff --git a/src/localplayer.cpp b/src/localplayer.cpp index d19a79eae..6546d31bd 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1300,20 +1300,6 @@ void LocalPlayer::attack(Being *const target, const bool keep, { setAction(ATTACK); -/* - if (mEquippedWeapon) - { - std::string soundFile = mEquippedWeapon->getSound( - EQUIP_EVENT_STRIKE); - if (!soundFile.empty()) - soundManager.playSfx(soundFile); - } - else - { - soundManager.playSfx(paths.getValue( - "attackSfxFile", "fist-swish.ogg")); - } -*/ if (!Client::limitPackets(PACKET_ATTACK)) return; -- cgit v1.2.3-70-g09d2