diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/rkt/rkt.c | 2 | ||||
-rw-r--r-- | src/modules/rkt/rkt.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c index 9bc154b..71a00e7 100644 --- a/src/modules/rkt/rkt.c +++ b/src/modules/rkt/rkt.c @@ -353,6 +353,8 @@ static void rkt_render_fragment(til_module_context_t *context, til_stream_t *str txt_free(msg); } + + ctxt->last_scene = scene; } } diff --git a/src/modules/rkt/rkt.h b/src/modules/rkt/rkt.h index 241fa24..4ec8599 100644 --- a/src/modules/rkt/rkt.h +++ b/src/modules/rkt/rkt.h @@ -29,6 +29,9 @@ typedef struct rkt_context_t { unsigned scene; /* current scene (usually driven by the scene track data, * but scener may override it to force showing a specific scene) */ + unsigned last_scene; /* for triggering things on edge of a scene switch + * ((like pausing on entering 99999 in creative mode) + */ } rkt_context_t; typedef struct rkt_setup_scene_t { |