summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-04 16:29:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-04 16:29:02 +0300
commit5eaf66ff5db2756fc6ef8ef7ee49f1aa57e12406 (patch)
tree445d822188f3f12bc56442195230668dea6f5cca /src
parentdfbd0e3d130d2df88e75a26fb3bece6ebf6fafef (diff)
downloadmanaplus-5eaf66ff5db2756fc6ef8ef7ee49f1aa57e12406.tar.gz
manaplus-5eaf66ff5db2756fc6ef8ef7ee49f1aa57e12406.tar.bz2
manaplus-5eaf66ff5db2756fc6ef8ef7ee49f1aa57e12406.tar.xz
manaplus-5eaf66ff5db2756fc6ef8ef7ee49f1aa57e12406.zip
Fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/soundmanager.cpp10
1 files 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)
{