fix: clamping camera fov

This commit is contained in:
Sara 2025-08-12 13:40:54 +02:00
parent 67d59a161d
commit a55fe18a6c

View file

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