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:
Richard ZinkandClaude Opus 5.5 committed 2026-11-06 07:54:36 +01:00
1 parent 68e878265c
commit 7709226a58
4 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -228,7 +228,7 @@ mod tests {
assert!(g.map.shown(out), "own ground beyond the lifted start is known");
assert!(g.map.explored.iter().filter(|&&b| b).count() > explored);
// savegame round trip
let json = crate::save::to_json(&g, &crate::render3d::Cam::new(0.0, 0.0), &crate::settings::Settings::default());
let json = crate::save::to_json(&g);
let l = crate::save::from_bytes(json.as_bytes()).unwrap();
assert_eq!(l.game.map.explored, g.map.explored);
// the seer's eye opens a far area for a while