Whitespace
parent
86ebe8d7b5
commit
1e9b1215bc
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue