From b9a4a8002d369e9230c943d4c8a8816b3e2ead12 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Tue, 31 Jul 2018 21:15:16 +0200 Subject: [PATCH] Fixes: #27 Suspicious code: sign conversion --- src/particle_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/particle_engine.c b/src/particle_engine.c index dfc05a2..e052406 100644 --- a/src/particle_engine.c +++ b/src/particle_engine.c @@ -234,7 +234,7 @@ particle_engine_sparkle(Position pos, Dimension dim) alpha = get_random(155) + 100; - yv = (get_random(100) + 100) * -1; + yv = -(get_random(100) + 100); lt = get_random(20);