From f651273ebf2a8b11aa01ed1434ecb613177ced6a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Aug 2015 16:13:36 +0300 Subject: Add gui mode for dyecmd. Now only basic code added. --- src/soundmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/soundmanager.cpp') diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index a501e506b..746f5a924 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -25,7 +25,9 @@ #include "configuration.h" #include "logger.h" +#ifndef DYECMD #include "being/localplayer.h" +#endif #include "resources/sdlmusic.h" #include "resources/resourcemanager.h" @@ -361,6 +363,7 @@ void SoundManager::logic() void SoundManager::playSfx(const std::string &path, const int x, const int y) const { +#ifndef DYECMD if (!mInstalled || path.empty() || !mPlayBattle) return; @@ -393,6 +396,7 @@ void SoundManager::playSfx(const std::string &path, if (!mCacheSounds) sample->decRef(); } +#endif } void SoundManager::playGuiSound(const std::string &name) -- cgit v1.2.3-60-g2f50