Permalink
Browse files

Settings should no longer fuck up everything

  • Loading branch information...
Fredholm committed Nov 14, 2017
1 parent ecadc56 commit 4d7e5ff1391d8c1a74418e82c42454f92a1cbe7a
Showing with 4 additions and 5 deletions.
  1. +1 −0 Engine/Engine.cpp
  2. +3 −3 Engine/Resources/Data/Settings.lw
  3. +0 −2 Logic/source/Misc/GUI/MenuMachine.cpp
View
@@ -418,6 +418,7 @@ int Engine::run()
RenderQueue::get().clearAllQueues();
}
setting.writeToFile();
delete Global::mainCamera;
Graphics::Debug::Destroy();
g_Profiler->end();
@@ -8,15 +8,15 @@
}
{
"Name": "MasterSound";
"Value": 0.51f;
"Value": 0.1f;
}
{
"Name": "SFX";
"Value": 0.61f;
"Value": 0.1f;
}
{
"Name": "Music";
"Value": 0.57f;
"Value": 0.1f;
}
{
"Name": "Windowed";
@@ -45,8 +45,6 @@ MenuMachine::~MenuMachine()
{
delete a.second;
}
Settings setting = Settings::getInstance();
setting.writeToFile();
}
void MenuMachine::initialize(GameState state)

0 comments on commit 4d7e5ff

Please sign in to comment.