mirror of https://github.com/ppy/osu
Fix ParticleSpewer outputting NaN in vertices
This commit is contained in:
parent
2702f7b9f9
commit
d482ab0287
|
@ -109,6 +109,9 @@ protected override void Blit(Action<TexturedVertex2D> vertexAction)
|
||||||
{
|
{
|
||||||
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…
Reference in New Issue