From b9450fa1b2baba41a912d3d57682df9e14b02530 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 16 Jul 2023 13:58:41 -0700 Subject: modules/rkt: pause on entering scene 99999 This is only relevant to creative mode. Stops RocketEditor from continuing playback endlessly until user intervention beyond the current end of the demo. --- src/modules/rkt/rkt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c index 71a00e7..9aa18ee 100644 --- a/src/modules/rkt/rkt.c +++ b/src/modules/rkt/rkt.c @@ -322,6 +322,9 @@ static void rkt_render_fragment(til_module_context_t *context, til_stream_t *str ((rkt_setup_t *)context->setup)->connect ? (ctxt->connected ? "ONLINE" : "OFFLINE") : "PLAYER", ctxt->scener ? "SCENER" : "NOSCENER"); + if (scene != ctxt->last_scene) + ctxt->paused = 1; + /* TODO: creating/destroying this every frame is dumb, but * as this is a diagnostic it's not so important. */ -- cgit v1.2.3