Limit vertical scaling UI minimum to 0.1

This commit is contained in:
James Melkonian 2024-06-22 00:25:25 -07:00
parent 92af46c08f
commit b3ae2abbd2
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)),
)