diff options
-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); + } } } |