From 160d65ca28a1a3faee367722808cf7b03bc16d15 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Fri, 2 Jul 2021 13:14:08 -0700 Subject: [PATCH] Try loading a built-in proposal with --edits, if player data is missing. --- game/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/game/src/lib.rs b/game/src/lib.rs index 7a933dcfa5..0028cc1b55 100644 --- a/game/src/lib.rs +++ b/game/src/lib.rs @@ -306,6 +306,13 @@ fn finish_app_setup( abstio::path_edits(app.primary.map.get_name(), &edits_name), &mut timer, ) + .or_else(|_| { + map_model::MapEdits::load( + &app.primary.map, + abstio::path(format!("system/proposals/{}.json", edits_name)), + &mut timer, + ) + }) .unwrap(); crate::edit::apply_map_edits(ctx, app, edits); app.primary