diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-02 16:13:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-03 21:50:05 +0300 |
commit | f651273ebf2a8b11aa01ed1434ecb613177ced6a (patch) | |
tree | c51d2bed1476270e27ad95c5a46e15af32eaccdd /src/soundmanager.cpp | |
parent | 30846b7f68f1ad05a0719ae37f75fd2901a6545a (diff) | |
download | manaverse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.gz manaverse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.bz2 manaverse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.xz manaverse-f651273ebf2a8b11aa01ed1434ecb613177ced6a.zip |
Add gui mode for dyecmd. Now only basic code added.
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r-- | src/soundmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |