From bc3d0d7d5c58fde55eb534671e5eeada76b05429 Mon Sep 17 00:00:00 2001 From: Kyra Zimmer Date: Mon, 25 Apr 2022 15:39:21 +0200 Subject: [PATCH] Updated Reuse filler save space for Variables and Flags (markdown) --- Reuse-filler-save-space-for-Variables-and-Flags.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reuse-filler-save-space-for-Variables-and-Flags.md b/Reuse-filler-save-space-for-Variables-and-Flags.md index c7f2464..14f9929 100644 --- a/Reuse-filler-save-space-for-Variables-and-Flags.md +++ b/Reuse-filler-save-space-for-Variables-and-Flags.md @@ -72,7 +72,7 @@ To save on space (because I don't know what your game will need), variables and * **Variables** are **16**bit long (so their **ID gets multiplied by 2** to get the byte offset into `gnAdditionalSaveData`) * **Flags** are **1**bit long (**ID gets divided by 8**). -so the above examples would then internally look like this: +so the above examples would then internally look like this (do not actually put this code anywhere, it's just to show a comparison how the data would look like): ```c struct{ u8 FLAG_FOR_SOMETHING_SUPER_SPECIAL : 1; // flag with ID 0xF000 at bit 0 of byte 0