From a55fe18a6c49b64226d7e51778003be7a2d43d60 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 12 Aug 2025 13:40:54 +0200 Subject: [PATCH] fix: clamping camera fov --- modules/wave_survival/player_camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wave_survival/player_camera.cpp b/modules/wave_survival/player_camera.cpp index c4a42ef1..776e0104 100644 --- a/modules/wave_survival/player_camera.cpp +++ b/modules/wave_survival/player_camera.cpp @@ -14,7 +14,7 @@ void PlayerCamera::on_look_input(Vector2 input) { void PlayerCamera::update_fov() { if (!Engine::get_singleton()->is_editor_hint() && is_ready()) { - set_fov(this->base_fov * this->fov_factor); + set_fov(CLAMP(this->base_fov * this->fov_factor, 1, 179)); } }