mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-05 06:52:36 +02:00
fix edge mode not loading properly in saves, options menu uses edge mode from Simulation and not GameModel
This commit is contained in:
parent
a8c141c144
commit
f435cf3881
@ -575,7 +575,6 @@ void GameModel::SetSave(SaveInfo * newSave)
|
||||
sim->grav->start_grav_async();
|
||||
else
|
||||
sim->grav->stop_grav_async();
|
||||
sim->SetEdgeMode(0);
|
||||
sim->clear_sim();
|
||||
ren->ClearAccumulation();
|
||||
sim->Load(saveData);
|
||||
|
@ -72,7 +72,7 @@ void OptionsModel::SetAirMode(int airMode)
|
||||
|
||||
int OptionsModel::GetEdgeMode()
|
||||
{
|
||||
return gModel->GetEdgeMode();
|
||||
return gModel->GetSimulation()->edgeMode;
|
||||
}
|
||||
void OptionsModel::SetEdgeMode(int edgeMode)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user