summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-11 13:05:29 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-11 13:05:29 +0000
commitdaa0b9a49705c00a72b3b585ef859d4c65a330ca (patch)
tree978745ef652b72bd8771c19fd8c4d561e2647e91 /src
parente5176b90cb1c5ff8750b0d1624160134d61e8640 (diff)
downloadmana-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.cpp10
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);
+ }
}
}