clamp juicestream heads beforehand (/b/17295+Catch)

This commit is contained in:
MaxOhn
2024-02-17 14:11:41 +01:00
parent 2c50fbeb1b
commit 812a71fff6
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ impl<'a> JuiceStream<'a> {
}
}
fn clamp_to_playfield(value: f32) -> f32 {
pub fn clamp_to_playfield(value: f32) -> f32 {
value.clamp(0.0, PLAYFIELD_WIDTH)
}
}