diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-11 13:05:29 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-11 13:05:29 +0000 |
commit | daa0b9a49705c00a72b3b585ef859d4c65a330ca (patch) | |
tree | 978745ef652b72bd8771c19fd8c4d561e2647e91 /src | |
parent | e5176b90cb1c5ff8750b0d1624160134d61e8640 (diff) | |
download | mana-daa0b9a49705c00a72b3b585ef859d4c65a330ca.tar.gz mana-daa0b9a49705c00a72b3b585ef859d4c65a330ca.tar.bz2 mana-daa0b9a49705c00a72b3b585ef859d4c65a330ca.tar.xz mana-daa0b9a49705c00a72b3b585ef859d4c65a330ca.zip |
Temp: avoid playing sample when sound is disabled
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 30eb5f29..4ec83d5d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -533,10 +533,12 @@ void do_input() player_node->direction); player_node->walk_time = tick_time; - ResourceManager *resman = ResourceManager::getInstance(); - SoundEffect *sample = resman->getSoundEffect( - "sfx/fist-swish.ogg"); - sample->play(0, 120); + if (config.getValue("sound", 0) == 1) { // Temp fix + ResourceManager *resman = ResourceManager::getInstance(); + SoundEffect *sample = resman->getSoundEffect( + "sfx/fist-swish.ogg"); + sample->play(0, 120); + } } } |