From beac98b7d093bca0fa921e5e30c2b766fb0298e9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 14 Apr 2009 23:47:22 +0200 Subject: 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 --- src/localplayer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/localplayer.cpp') 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(); -- cgit v1.2.3-70-g09d2