From 5eaf66ff5db2756fc6ef8ef7ee49f1aa57e12406 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Aug 2015 16:29:02 +0300 Subject: Fix compilation warnings. --- src/soundmanager.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index 746f5a924..8a6170c7f 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -360,10 +360,16 @@ void SoundManager::logic() BLOCK_END("SoundManager::logic") } +#ifdef DYECMD +void SoundManager::playSfx(const std::string &path A_UNUSED, + const int x A_UNUSED, + const int y A_UNUSED) const +{ +} +#else void SoundManager::playSfx(const std::string &path, const int x, const int y) const { -#ifndef DYECMD if (!mInstalled || path.empty() || !mPlayBattle) return; @@ -396,8 +402,8 @@ void SoundManager::playSfx(const std::string &path, if (!mCacheSounds) sample->decRef(); } -#endif } +#endif void SoundManager::playGuiSound(const std::string &name) { -- cgit v1.2.3-60-g2f50