diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-29 21:46:38 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-29 21:46:38 -0700 |
commit | d948d2c0c35efd8a7c7b60c5f34ff3d0e345cb42 (patch) | |
tree | 63e75092a193f11efe2c2071e33582ea7d2c02d2 /src/modules | |
parent | 5850b250c97943a8ff3af0327bfbed80aaaaf4c5 (diff) |
til: s/til_module_setup_randomize/til_module_settings_randomize/
Mechanical rename for clarity reasons, primarily to better
differentiate from the setup_func style
til_module_setup()/til_module_setup_full() functions.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/rkt/rkt_scener.c | 2 | ||||
-rw-r--r-- | src/modules/rtv/rtv.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/rkt/rkt_scener.c b/src/modules/rkt/rkt_scener.c index 446b998..11be927 100644 --- a/src/modules/rkt/rkt_scener.c +++ b/src/modules/rkt/rkt_scener.c @@ -644,7 +644,7 @@ static int rkt_scener_randomize_scene_settings(rkt_context_t *ctxt, unsigned sce return -ENOMEM; /* FIXME: seed reproducibility needs to be sorted out, maybe move seed into settings */ - til_module_setup_randomize(module, + til_module_settings_randomize(module, new_settings, rand_r(&ctxt->til_module_context.seed), &setup, diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c index 14bc09b..36e21d4 100644 --- a/src/modules/rtv/rtv.c +++ b/src/modules/rtv/rtv.c @@ -201,7 +201,11 @@ static void setup_next_channel(rtv_context_t *ctxt, unsigned ticks) "channel", ctxt->channel->module->name /* XXX: this should come from the channel settings */); - (void) til_module_setup_randomize(ctxt->channel->module, settings, rand_r(&ctxt->til_module_context.seed), &ctxt->channel->module_setup, &settings_as_arg); + (void) til_module_settings_randomize(ctxt->channel->module, + settings, + rand_r(&ctxt->til_module_context.seed), + &ctxt->channel->module_setup, + &settings_as_arg); caption = txt_newf("Title: %s%s%s\nDescription: %s%s%s", ctxt->channel->module->name, ctxt->channel->module->author ? "\nAuthor: " : "", |