From 8d4c2cbe19256aa12f0282df0a555d052490d25a Mon Sep 17 00:00:00 2001 From: heinezen Date: Sun, 28 Jul 2024 14:46:53 +0200 Subject: [PATCH] presenter: Let camera look at map center on startup. --- libopenage/presenter/presenter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libopenage/presenter/presenter.cpp b/libopenage/presenter/presenter.cpp index 62435074d4..33c798bcef 100644 --- a/libopenage/presenter/presenter.cpp +++ b/libopenage/presenter/presenter.cpp @@ -116,6 +116,7 @@ void Presenter::init_graphics(bool debug) { // Camera this->camera = std::make_shared(this->renderer, this->window->get_size()); + this->camera->look_at_coord(coord::scene3{10.0, 10.0, 0}); // Center camera on the map this->window->add_resize_callback([this](size_t w, size_t h, double /*scale*/) { this->camera->resize(w, h); });