|
|
@ -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 )
|
|
|
@ -1733,7 +1735,7 @@ bool mainLoop()
|
|
|
|
bool wantTraversals = !StereoDisplay || StereoDisplay->isSceneFirst();
|
|
|
|
bool wantTraversals = !StereoDisplay || StereoDisplay->isSceneFirst();
|
|
|
|
bool keepTraversals = StereoDisplay && !StereoDisplay->isSceneLast();
|
|
|
|
bool keepTraversals = StereoDisplay && !StereoDisplay->isSceneLast();
|
|
|
|
doRenderScene(wantTraversals, keepTraversals);
|
|
|
|
doRenderScene(wantTraversals, keepTraversals);
|
|
|
|
|
|
|
|
|
|
|
|
if (!StereoDisplay || StereoDisplay->isSceneLast())
|
|
|
|
if (!StereoDisplay || StereoDisplay->isSceneLast())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (fullDetail)
|
|
|
|
if (fullDetail)
|
|
|
@ -1803,7 +1805,7 @@ bool mainLoop()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
displayPACSPrimitive();
|
|
|
|
displayPACSPrimitive();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// display Sound box
|
|
|
|
// display Sound box
|
|
|
|
if (SoundBox)
|
|
|
|
if (SoundBox)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -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 ();
|
|
|
|
|
|
|
|
|
|
|
|