Merge pull request #17743 from smoogipoo/fix-particle-spewer-nan

Fix ParticleSpewer outputting NaN values in vertices
This commit is contained in:
Dean Herbert 2022-04-09 23:06:14 +09:00 committed by GitHub
commit f2e67d00cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,6 +109,9 @@ namespace osu.Game.Graphics
{
foreach (var p in particles)
{
if (p.Duration == 0)
continue;
float timeSinceStart = currentTime - p.StartTime;
// ignore particles from the future.