From cc2fed1be414d8e6a3f56c7907aeb7e169b362ac Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Wed, 25 Aug 2021 15:17:57 +0200 Subject: [PATCH] Require less unaligned lumps to load --- cgdoom/doomdata.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cgdoom/doomdata.h b/cgdoom/doomdata.h index 204d102..635c63a 100644 --- a/cgdoom/doomdata.h +++ b/cgdoom/doomdata.h @@ -90,7 +90,7 @@ typedef struct short tagLE; // sidenum[1] will be -1 if one sided short sidenum[2]; -} maplinedef_t; +} __attribute__((packed, aligned(1))) maplinedef_t; // @@ -193,7 +193,7 @@ typedef struct // else it's a node of another subtree. unsigned short children[2]; -} mapnode_t; +} __attribute__((packed, aligned(1))) mapnode_t; @@ -207,7 +207,7 @@ typedef struct short angle; short type; short options; -} mapthing_t; +} __attribute__((packed, aligned(1))) mapthing_t;