mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Merge pull request #17743 from smoogipoo/fix-particle-spewer-nan
Fix ParticleSpewer outputting NaN values in vertices
This commit is contained in:
commit
f2e67d00cc
@ -109,6 +109,9 @@ namespace osu.Game.Graphics
|
|||||||
{
|
{
|
||||||
foreach (var p in particles)
|
foreach (var p in particles)
|
||||||
{
|
{
|
||||||
|
if (p.Duration == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
float timeSinceStart = currentTime - p.StartTime;
|
float timeSinceStart = currentTime - p.StartTime;
|
||||||
|
|
||||||
// ignore particles from the future.
|
// ignore particles from the future.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user