mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
Try loading a built-in proposal with --edits, if player data is missing.
This commit is contained in:
parent
d36c2b2d40
commit
160d65ca28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user