From a20b7834c0a219bd2b6b8d12e66eb82730cc0e07 Mon Sep 17 00:00:00 2001 From: David Dormagen Date: Tue, 10 May 2016 22:29:30 +0200 Subject: [PATCH] OneMillionParticles.ocs: removed some randomness in the amount of particles in the final test It's easier to compare runs this way. --- planet/Tests.ocf/OneMillionParticles.ocs/Script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/Tests.ocf/OneMillionParticles.ocs/Script.c b/planet/Tests.ocf/OneMillionParticles.ocs/Script.c index cbfac59dc..3757691ea 100644 --- a/planet/Tests.ocf/OneMillionParticles.ocs/Script.c +++ b/planet/Tests.ocf/OneMillionParticles.ocs/Script.c @@ -56,7 +56,8 @@ global func Test3() { var x = RandomX(100, LandscapeWidth() - 100); var y = LandscapeHeight() / 2 - 20; - AddEffect("ScorchEverything", nil, 1, 1, nil, nil, x, y); + var fx = AddEffect("ScorchEverything", nil, 1, 1, nil, nil, x, y); + fx.offset = 2 * fire_count; } } @@ -65,7 +66,6 @@ global func FxScorchEverythingStart(target, effect, temp, x, y) if (temp) return; effect.x = x; effect.y = y; - effect.offset = Random(180); effect.glimmer = { Prototype = Particles_Glimmer(),