summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-16 13:58:41 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-16 13:58:41 -0700
commitb9450fa1b2baba41a912d3d57682df9e14b02530 (patch)
treedbb5a3e44688ae94a89519cb443badd710d4cada /src
parent4b4216de1a5dc59aba06d0defe1a0b9394790c70 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/modules/rkt/rkt.c3
1 files changed, 3 insertions, 0 deletions
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.
*/
© All Rights Reserved