Add assertion limiting pitch to 0..2.
This commit is contained in:
parent
e4b1df13ce
commit
aa60e1d70f
|
@ -508,7 +508,7 @@ fn update_sound_properties(mut query: Query<&mut Sound>) {
|
|||
..
|
||||
} = *sound;
|
||||
assert!(gain >= 0.);
|
||||
assert!(pitch >= 0.);
|
||||
assert!(pitch >= 0. && pitch <= 2.);
|
||||
if sound.restart {
|
||||
if let Some(generator) = sound.generator.as_mut() {
|
||||
generator
|
||||
|
|
Loading…
Reference in New Issue
Block a user