From 15198214ef081e1d59d4f0e13ad9ef6c6463885d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 3 Dec 2022 10:10:09 +0100 Subject: editor: prepare for making a screencast --- editor/save.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'editor/save.cpp') diff --git a/editor/save.cpp b/editor/save.cpp index e3d917fa..c05f3e5f 100644 --- a/editor/save.cpp +++ b/editor/save.cpp @@ -48,4 +48,11 @@ void app::do_quickload() fputs("done\n", stderr); fflush(stderr); } +void app::do_new_file() +{ + auto& w = M->world(); + w = world{}; + maybe_initialize_chunk_(chunk_coords{}, w[chunk_coords{}]); +} + } // namespace floormat -- cgit v1.2.3