Whitespace

master
Mark 2024-01-23 16:56:24 -08:00
parent 86ebe8d7b5
commit 1e9b1215bc
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 0 additions and 3 deletions

View File

@ -75,15 +75,12 @@ impl PhysEffect {
PhysEffect {
anim: SpriteAutomaton::new(ct, effect.sprite),
rigid_body: wrapper.insert_rigid_body(rb.build()),
lifetime: 0f32
.max(effect.lifetime + rng.gen_range(-effect.lifetime_rng..=effect.lifetime_rng)),
// Make sure size isn't negative. This check should be on EVERY rng!
size: 0f32.max(effect.size + rng.gen_range(-effect.size_rng..=effect.size_rng)),
fade: 0f32.max(effect.fade + rng.gen_range(-effect.fade_rng..=effect.fade_rng)),
is_destroyed: false,
}
}