diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 12:57:02 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 12:57:02 +0200 |
| commit | f9a0eb3a124713cd086ace10d818a8f457e5abbb (patch) | |
| tree | 25bdc2a086b30c430eced18488e7a1c8efc8cf8b | |
| parent | 8aae71d17c3927af76fae980cd0f04f93c628abd (diff) | |
center camera on startup
| -rw-r--r-- | editor/app.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index e28f1a72..9ee59844 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -18,6 +18,7 @@ app::app(fm_settings&& opts) : world& w = M->world(); chunk_coords coord{0 ,0}; maybe_initialize_chunk_(coord, w[coord]); + reset_camera_offset(); } app::~app() // NOLINT(modernize-use-equals-default) |
