From 073fc4f66f925d8af9335fbec6d804dad5029757 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Dec 2024 17:09:17 +0100 Subject: [PATCH] fix(naming): capitalized constant --- src/camera_effects.cpp | 2 +- src/camera_effects.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/camera_effects.cpp b/src/camera_effects.cpp index b2e9c7d..dd08937 100644 --- a/src/camera_effects.cpp +++ b/src/camera_effects.cpp @@ -38,7 +38,7 @@ void CameraEffects::_process(double delta [[maybe_unused]]) { float const current_y{this->spring->get_rotation().y}; float diff{gd::Math::wrapf(this->target_rotation - current_y, -M_2_PIf, M_2_PI)}; - float const step(gd::Math::sign(diff) * delta * this->shoulder_switch_speed); + float const step(gd::Math::sign(diff) * delta * this->SHOULDER_SWITCH_SPEED); this->spring->rotate_y(gd::Math::abs(step) < gd::Math::abs(diff) ? step : diff); this->set_fov(gd::Math::move_toward(this->get_fov(), this->target_fov, float(this->fov_speed * delta))); diff --git a/src/camera_effects.hpp b/src/camera_effects.hpp index a29c554..035ef54 100644 --- a/src/camera_effects.hpp +++ b/src/camera_effects.hpp @@ -19,7 +19,7 @@ public: void select_target(); gd::Vector3 get_radians() const { return this->get_rotation(); } private: - float shoulder_switch_speed{1.f}; + float const SHOULDER_SWITCH_SPEED{10.f}; double end_time{0.5f}; float intensity{1.f}; float base_fov{60.f};