[map] Move saving of 3d mode setting to framework

Where the actual final values are determined.
And thus avoid saving potentially incorrect values.

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
Ferenc Géczi 2024-12-18 00:00:00 +00:00
parent 0873f97754
commit 4ebe3cfc7a
2 changed files with 1 additions and 1 deletions

View file

@ -2495,6 +2495,7 @@ void Framework::Allow3dMode(bool allow3d, bool allow3dBuildings)
allow3dBuildings = false;
m_drapeEngine->Allow3dMode(allow3d, allow3dBuildings);
Save3dMode(allow3d, allow3dBuildings);
}
void Framework::Save3dMode(bool allow3d, bool allow3dBuildings)

View file

@ -188,7 +188,6 @@ bool SearchPanel::Try3dModeCmd(std::string const & str)
if (!is3dModeOn && !is3dBuildingsOn && !is3dModeOff)
return false;
GetFramework().Save3dMode(is3dModeOn || is3dBuildingsOn, is3dBuildingsOn);
GetFramework().Allow3dMode(is3dModeOn || is3dBuildingsOn, is3dBuildingsOn);
return true;