summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-05-19 12:52:45 +0200
committerDennis Friis <peavey@inspircd.org>2009-05-27 21:56:01 +0200
commit0938ec96619016c44a8185634246c0384c62815b (patch)
treeb672add69b168e217dff6d3f9e68b8a0a0e4464a /src/game.cpp
parent41d4aa745fd15b4a22f231e316ec353316842212 (diff)
downloadmana-client-0938ec96619016c44a8185634246c0384c62815b.tar.gz
mana-client-0938ec96619016c44a8185634246c0384c62815b.tar.bz2
mana-client-0938ec96619016c44a8185634246c0384c62815b.tar.xz
mana-client-0938ec96619016c44a8185634246c0384c62815b.zip
Fade out logon music just before initial map change.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 41bcc9cc..f1df57cc 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -39,6 +39,7 @@
#include "npc.h"
#include "particle.h"
#include "playerrelations.h"
+#include "sound.h"
#include "gui/widgets/chattab.h"
#include "gui/buy.h"
@@ -324,6 +325,9 @@ Game::Game():
joystick = new Joystick(0);
#ifdef EATHENA_SUPPORT
+ // fade out logon-music here too to give the desired effect of "flowing"
+ // into the game.
+ sound.fadeOutMusic(1000);
map_path = map_path.substr(0, map_path.rfind("."));
engine->changeMap(map_path);
#endif