summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-14 23:47:22 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-14 23:53:26 +0200
commitbeac98b7d093bca0fa921e5e30c2b766fb0298e9 (patch)
tree74adb5d59e6bd074a8483d14966ab2913fd50cc1 /src/localplayer.cpp
parent2f04d1c1aa1fca06754eb5c8bad631d4fbfab6df (diff)
downloadmana-beac98b7d093bca0fa921e5e30c2b766fb0298e9.tar.gz
mana-beac98b7d093bca0fa921e5e30c2b766fb0298e9.tar.bz2
mana-beac98b7d093bca0fa921e5e30c2b766fb0298e9.tar.xz
mana-beac98b7d093bca0fa921e5e30c2b766fb0298e9.zip
Cleanup of Sound class, fixing restoring of volumes and music
While a previous commit fixed the restoring of music of the current map in the setup window, this commit makes sure that the Sound class itself will resume a previously playing song when it is re-initialized. Other fixes: * Restore the correct volumes when enabling sound * Play the right audio track during login * Specify which font to use for bold text
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index ecc6b25d..5748cd53 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -973,9 +973,8 @@ void LocalPlayer::handleStatusEffect(StatusEffect *effect, int effectId)
{
Being::handleStatusEffect(effect, effectId);
-
-
- if (effect) {
+ if (effect)
+ {
effect->deliverMessage();
effect->playSFX();