summaryrefslogtreecommitdiff
path: root/src/modules/rkt/rkt.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-25 12:26:52 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-04 21:09:11 -0700
commit5fd4e4331baf62d17632b2627db202459e8be6b0 (patch)
tree2a0a9e1bca4f917c66579a128c9fe8e45d535458 /src/modules/rkt/rkt.h
parent40d001b40aeca62f21a77687b96144c8d0487069 (diff)
modules/rkt: discretize rkt_context_t.scenes[]
Make this a distinct heap allocation so it can be enlarged when editing the scenes... (preparatory commit for scenes editing)
Diffstat (limited to 'src/modules/rkt/rkt.h')
-rw-r--r--src/modules/rkt/rkt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/rkt/rkt.h b/src/modules/rkt/rkt.h
index c4c8550..861aa6b 100644
--- a/src/modules/rkt/rkt.h
+++ b/src/modules/rkt/rkt.h
@@ -18,7 +18,8 @@ typedef struct rkt_context_t {
double rocket_row;
unsigned last_ticks;
unsigned paused:1;
- rkt_scene_t scenes[];
+ size_t n_scenes;
+ rkt_scene_t *scenes;
} rkt_context_t;
typedef struct rkt_setup_scene_t {
© All Rights Reserved