diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-07-16 13:58:41 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-07-16 13:58:41 -0700 |
commit | b9450fa1b2baba41a912d3d57682df9e14b02530 (patch) | |
tree | dbb5a3e44688ae94a89519cb443badd710d4cada /src/modules/rkt | |
parent | 4b4216de1a5dc59aba06d0defe1a0b9394790c70 (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/modules/rkt')
-rw-r--r-- | src/modules/rkt/rkt.c | 3 |
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. */ |