From 1e461f6cc82cb8c30027b120a8b07693fb32edfd Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 20 Jul 2022 17:46:43 -0700 Subject: libs/din: pass seed to din_new() also update call sites in modules/{meta2d,swab} accordingly --- src/modules/meta2d/meta2d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/meta2d') diff --git a/src/modules/meta2d/meta2d.c b/src/modules/meta2d/meta2d.c index 1ab444c..1bb8827 100644 --- a/src/modules/meta2d/meta2d.c +++ b/src/modules/meta2d/meta2d.c @@ -76,8 +76,8 @@ static til_module_context_t * meta2d_create_context(unsigned seed, unsigned tick return NULL; /* perlin noise is used for some organic-ish random movement of the balls */ - ctxt->din_a = din_new(10, 10, META2D_NUM_BALLS + 2); - ctxt->din_b = din_new(10, 10, META2D_NUM_BALLS + 2); + ctxt->din_a = din_new(10, 10, META2D_NUM_BALLS + 2, seed); + ctxt->din_b = din_new(10, 10, META2D_NUM_BALLS + 2, seed); for (int i = 0; i < META2D_NUM_BALLS; i++) { meta2d_ball_t *ball = &ctxt->balls[i]; -- cgit v1.2.3