Savegames hold only the game state: no settings, no camera (settings stay in local storage)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
68e878265c
commit
7709226a58
4 files changed
+30
-30
No files matched your search
+1
-1
@@ -55,7 +55,7 @@ fn save(name: &str, g: &mut Game, x: f32, z: f32, zoom: f32, yaw: f32, fog: bool
|
||||
let mut s = Settings::default();
|
||||
s.language = "en".into();
|
||||
s.hints = false;
|
||||
std::fs::write(format!("/tmp/scenes/{}.json", name), crate::save::to_json(g, &cam, &s)).unwrap();
|
||||
std::fs::write(format!("/tmp/scenes/{}.json", name), crate::save::to_json_with_camera(g, &cam)).unwrap();
|
||||
}
|
||||
|
||||
fn run(g: &mut Game, secs: f32) {
|
||||
|
||||
Reference in new issue
Block a user