--HG--
branch : compatibility-develop
hg/compatibility-develop
ulukyn 6 years ago
commit 15cbe4d1c1

@ -80,6 +80,7 @@
#include "world_database_manager.h" #include "world_database_manager.h"
#include "continent_manager.h" #include "continent_manager.h"
#include "ig_callback.h" #include "ig_callback.h"
#include "release.h"
//#include "fog_map.h" //#include "fog_map.h"
#include "movie_shooter.h" #include "movie_shooter.h"
#include "sound_manager.h" #include "sound_manager.h"
@ -2555,6 +2556,9 @@ bool mainLoop()
if ( ! FarTP.isReselectingChar() ) // skip some parts if the user wants to quit in the middle of a char reselect if ( ! FarTP.isReselectingChar() ) // skip some parts if the user wants to quit in the middle of a char reselect
{ {
// Saving ingame resolution when in windowed mode
saveIngameResolution();
// Release the structure for the ping. // Release the structure for the ping.
Ping.release (); Ping.release ();

@ -136,7 +136,7 @@ extern void selectTipsOfTheDay (uint tips);
// *************************************************************************** // ***************************************************************************
// Saving ingame resolution when in windowed mode // Saving ingame resolution when in windowed mode
static void saveIngameResolution() void saveIngameResolution()
{ {
if (ClientCfg.Windowed) if (ClientCfg.Windowed)
{ {
@ -382,8 +382,6 @@ void releaseMainLoop(bool closeConnection)
{ {
ProgressBar.release(); ProgressBar.release();
saveIngameResolution();
// Release R2 editor if applicable // Release R2 editor if applicable
R2::getEditor().autoConfigRelease(IsInRingSession); R2::getEditor().autoConfigRelease(IsInRingSession);

@ -22,7 +22,8 @@
#include "nel/misc/types_nl.h" #include "nel/misc/types_nl.h"
// Saving ingame resolution when in windowed mode
void saveIngameResolution();
// called from farTP at reselection // called from farTP at reselection
void releaseMainLoopReselect(); void releaseMainLoopReselect();
// Release InGame Data // Release InGame Data

Loading…
Cancel
Save