diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp index 749b2fb29..1b7e2aa61 100644 --- a/src/game/GameModel.cpp +++ b/src/game/GameModel.cpp @@ -51,6 +51,9 @@ GameModel::GameModel(): std::vector renderModes(tempArray.begin(), tempArray.end()); ren->SetRenderMode(renderModes); } + + ren->gravityFieldEnabled = Client::Ref().GetPrefBool("Renderer.GravityField", false); + ren->decorations_enable = Client::Ref().GetPrefBool("Renderer.Decorations", true); } catch(json::Exception & e) { @@ -98,6 +101,9 @@ GameModel::~GameModel() std::vector renderModes = ren->GetRenderMode(); Client::Ref().SetPref("Renderer.RenderModes", std::vector(renderModes.begin(), renderModes.end())); + Client::Ref().SetPref("Renderer.GravityField", (bool)ren->gravityFieldEnabled); + Client::Ref().SetPref("Renderer.Decorations", (bool)ren->decorations_enable); + Client::Ref().SetPref("Simulation.EdgeMode", sim->edgeMode); Client::Ref().SetPref("Decoration.Red", (int)colour.Red);