mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 03:15:32 +00:00
Cleanup
This commit is contained in:
parent
375b736e74
commit
36e0cfbc9d
1 changed files with 5 additions and 3 deletions
|
@ -201,7 +201,6 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
|
||||||
, mCfgMgr(configurationManager)
|
, mCfgMgr(configurationManager)
|
||||||
{
|
{
|
||||||
Misc::Rng::init();
|
Misc::Rng::init();
|
||||||
std::srand ( static_cast<unsigned int>(std::time(NULL)) );
|
|
||||||
MWClass::registerClasses();
|
MWClass::registerClasses();
|
||||||
|
|
||||||
Uint32 flags = SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE|SDL_INIT_GAMECONTROLLER|SDL_INIT_JOYSTICK;
|
Uint32 flags = SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE|SDL_INIT_GAMECONTROLLER|SDL_INIT_JOYSTICK;
|
||||||
|
@ -219,6 +218,11 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
|
||||||
|
|
||||||
OMW::Engine::~Engine()
|
OMW::Engine::~Engine()
|
||||||
{
|
{
|
||||||
|
mEnvironment.cleanup();
|
||||||
|
|
||||||
|
delete mScriptContext;
|
||||||
|
mScriptContext = NULL;
|
||||||
|
|
||||||
mResourceSystem.reset();
|
mResourceSystem.reset();
|
||||||
|
|
||||||
mViewer = NULL;
|
mViewer = NULL;
|
||||||
|
@ -226,8 +230,6 @@ OMW::Engine::~Engine()
|
||||||
SDL_DestroyWindow(mWindow);
|
SDL_DestroyWindow(mWindow);
|
||||||
mWindow = NULL;
|
mWindow = NULL;
|
||||||
|
|
||||||
mEnvironment.cleanup();
|
|
||||||
delete mScriptContext;
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue