diff --git a/libopenage/presenter/presenter.cpp b/libopenage/presenter/presenter.cpp index ffb215135f..a37362be95 100644 --- a/libopenage/presenter/presenter.cpp +++ b/libopenage/presenter/presenter.cpp @@ -126,12 +126,12 @@ void Presenter::init_graphics(bool debug) { // TODO: Make boundaries dynamic based on map size. this->camera_manager->set_camera_boundaries( renderer::camera::CameraBoundaries{ - renderer::camera::X_MIN, - renderer::camera::X_MAX, - renderer::camera::Y_MIN, - renderer::camera::Y_MAX, - renderer::camera::Z_MIN, - renderer::camera::Z_MAX}); + renderer::camera::X_BOUND_MIN, + renderer::camera::X_BOUND_MAX, + renderer::camera::Y_BOUND_MIN, + renderer::camera::Y_BOUND_MAX, + renderer::camera::Z_BOUND_MIN, + renderer::camera::Z_BOUND_MAX}); // Skybox this->skybox_renderer = std::make_shared( diff --git a/libopenage/renderer/camera/definitions.h b/libopenage/renderer/camera/definitions.h index 4c801269c3..7c3bbdd5d3 100644 --- a/libopenage/renderer/camera/definitions.h +++ b/libopenage/renderer/camera/definitions.h @@ -69,9 +69,14 @@ static constexpr CameraBoundaries DEFAULT_CAM_BOUNDARIES{ std::numeric_limits::max()}; /** - * Constant values for the camera bounds. + * Constant values for the camera bounds (based on current fix terrain grid of 20x20). * TODO: Make boundaries dynamic based on map size. */ -static constexpr float X_MIN = 12.25f, X_MAX = 32.25f, Y_MIN = 0.0f, Y_MAX = 20.0f, Z_MIN = -8.25f, Z_MAX = 12.25f; +static constexpr float X_BOUND_MIN = 12.25f; +static constexpr float X_BOUND_MAX = 32.25f; +static constexpr float Y_BOUND_MIN = 0.0f; +static constexpr float Y_BOUND_MAX = 20.0f; +static constexpr float Z_BOUND_MIN = -8.25f; +static constexpr float Z_BOUND_MAX = 12.25f; } // namespace openage::renderer::camera