|
|
@ -1081,6 +1081,8 @@ bool mainLoop()
|
|
|
|
|
|
|
|
|
|
|
|
ProgressBar.finish();
|
|
|
|
ProgressBar.finish();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool musicTriggerAutoPlay = true;
|
|
|
|
|
|
|
|
|
|
|
|
// Main loop. If the window is no more Active -> Exit.
|
|
|
|
// Main loop. If the window is no more Active -> Exit.
|
|
|
|
while( !UserEntity->permanentDeath()
|
|
|
|
while( !UserEntity->permanentDeath()
|
|
|
|
&& !game_exit )
|
|
|
|
&& !game_exit )
|
|
|
@ -2418,6 +2420,17 @@ bool mainLoop()
|
|
|
|
// Update ingame duration and stat report sending
|
|
|
|
// Update ingame duration and stat report sending
|
|
|
|
updateStatReport ();
|
|
|
|
updateStatReport ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Auto play once on character login
|
|
|
|
|
|
|
|
if (musicTriggerAutoPlay)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
musicTriggerAutoPlay = false;
|
|
|
|
|
|
|
|
if (ClientCfg.SoundOn && ClientCfg.MediaPlayerAutoPlay)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MusicPlayer.stop();
|
|
|
|
|
|
|
|
CAHManager::getInstance()->runActionHandler("music_player", NULL, "play_songs");
|
|
|
|
|
|
|
|
MusicPlayer.play();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// Update the music player
|
|
|
|
// Update the music player
|
|
|
|
MusicPlayer.update ();
|
|
|
|
MusicPlayer.update ();
|
|
|
|
|
|
|
|
|
|
|
@ -2453,6 +2466,9 @@ bool mainLoop()
|
|
|
|
// we have just completed init main loop, after reselecting character
|
|
|
|
// we have just completed init main loop, after reselecting character
|
|
|
|
// repeat the steps before the main loop itself
|
|
|
|
// repeat the steps before the main loop itself
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// new char, retrigger music autoplay
|
|
|
|
|
|
|
|
musicTriggerAutoPlay = true;
|
|
|
|
|
|
|
|
|
|
|
|
// pre main loop in mainLoop
|
|
|
|
// pre main loop in mainLoop
|
|
|
|
resetIngameTime ();
|
|
|
|
resetIngameTime ();
|
|
|
|
|
|
|
|
|
|
|
|