From a5bb4f7f7ab7f624fcf22e6211b159f0c7577835 Mon Sep 17 00:00:00 2001 From: Johannes Herman Date: Wed, 21 Jan 2026 08:06:18 +0100 Subject: code cleanup, fewer magic numbers --- inc/demo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/demo.h b/inc/demo.h index cbd10ec..bb1f770 100644 --- a/inc/demo.h +++ b/inc/demo.h @@ -3,6 +3,8 @@ #include +#define DEMO_TIMELINE_LENGTH 260 + typedef enum { DEMOTICK = 0, @@ -27,7 +29,7 @@ typedef struct /* demotimeline struct, only contains the raw data */ typedef struct { - char data[260]; + char data[DEMO_TIMELINE_LENGTH]; } demotimeline; /* demomap struct */ -- cgit v1.2.3