From b3ae2abbd21ae96a02178b6762d65a7e5dc6b195 Mon Sep 17 00:00:00 2001 From: James Melkonian Date: Sat, 22 Jun 2024 00:25:25 -0700 Subject: [PATCH] Limit vertical scaling UI minimum to 0.1 --- CHANGELOG.md | 1 + voxygen/src/menu/main/ui/world_selector.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe54991e31..1ac9b23e69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Cultist dungeons now always have exactly one portal which leads to the boss room. - Prompt dialogs are now localized. - Image-export for wiki now produces correct images of items as they look like in-game. +- Limit the minimum vertical scaling value in the world generation UI to 0.1 to prevent an overflow ## [0.16.0] - 2024-03-30 diff --git a/voxygen/src/menu/main/ui/world_selector.rs b/voxygen/src/menu/main/ui/world_selector.rs index 1e4c36f19b..f84dc19d90 100644 --- a/voxygen/src/menu/main/ui/world_selector.rs +++ b/voxygen/src/menu/main/ui/world_selector.rs @@ -400,7 +400,7 @@ impl Screen { gen_content.push( Slider::new( &mut self.map_vertical_scale, - 0.0..=160.0, + 0.1..=160.0, gen_opts.scale * 10.0, move |s| message(WorldChange::Scale(s / 10.0)), )