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)); } }