summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorJohannes Herman <johannes.herman@gmail.com>2026-01-21 08:06:18 +0100
committerJohannes Herman <johannes.herman@gmail.com>2026-01-21 08:06:18 +0100
commita5bb4f7f7ab7f624fcf22e6211b159f0c7577835 (patch)
tree5f2a7b71efd14d89b4c91153ec9f7b803ee52248 /inc
parent2b2a25794fae72dc2f05bc3a670c32cd00f2cace (diff)
code cleanup, fewer magic numbers
Diffstat (limited to 'inc')
-rw-r--r--inc/demo.h4
1 files changed, 3 insertions, 1 deletions
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 <stdio.h>
+#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 */