diff options
Diffstat (limited to 'editor/save.cpp')
-rw-r--r-- | editor/save.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |