Skip to content

Commit ee11452

Browse files
committed
fix snowflakes after snowdrifts fix
1 parent 623f118 commit ee11452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Particle.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public void Move(int Width, int Height, Point? cursorForce, long deltaTime)
8585
Y += Math.Abs(Y - cursor.Y) / md * p * Math.Sign(Y - cursor.Y);
8686
}
8787
}
88-
if (Y > Height + Program.Settings.ParticleRad ||
89-
Program.SnowWindow?.Snowdrifts?.Intersects(X, Y) == true)
88+
if (Y > Height + Program.Settings.ParticleRad ||
89+
Program.Settings.Snowdrifts && Program.SnowWindow?.Snowdrifts.Intersects(X, Y) == true)
9090
{
91-
Program.SnowWindow?.Snowdrifts?.Add(X);
91+
Program.SnowWindow?.Snowdrifts.Add(X);
9292
Y = Random.Shared.NextSingle() * Program.Settings.SpeedYMax - Program.Settings.ParticleRad;
9393
X = Random.Shared.NextSingle() * Width;
9494
}

0 commit comments

Comments
 (0)