SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 0 Rust

fix: Ensure linear volume subtraction does not go below zero (#19423)

fix: [Ensure linear volume subtraction does not go below zero
](https://github.com/bevyengine/bevy/issues/19417)

## Solution
- Clamp the result of linear volume subtraction to a minimum of 0.0
- Add a new test case to verify behavior when subtracting beyond zero

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
Z
ZoOL committed
a35eed0ea4e5739a668e5661cddc87f69750484d
Parent: d0f1b3e
Committed by GitHub <noreply@github.com> on 6/5/2025, 3:59:20 AM