shithub: rott

Download patch

ref: 08f98ec44f87037889a1d0553ae4d8f97939e7a1
parent: 14257941774d9c6e8fbff6632ba7cf02d1ce9c10
author: Jacob Moody <moody@posixcafe.org>
date: Sat Feb 11 13:31:34 EST 2023

struct packing

--- a/src/_rt_ted.h
+++ b/src/_rt_ted.h
@@ -30,6 +30,8 @@
 #define NORMAL_SIGNATURE  ( "RTL" )
 #define RTL_HEADER_OFFSET 8
 
+#pragma pack on
+
 typedef struct
 {
     int  lump;
@@ -54,6 +56,8 @@
     word  width,height;
     char            name[16];
 } maptype;
+
+#pragma pack off
 
 #define ActorIsPushWall(xx,yy)   ((actorat[xx][yy])&&(((objtype *)actorat[xx][yy])->which==PWALL) )
 #define ActorIsWall(xx,yy)   ((actorat[xx][yy])&&(((objtype *)actorat[xx][yy])->which==WALL) )
--- a/src/_w_wad.h
+++ b/src/_w_wad.h
@@ -43,6 +43,7 @@
 //   TYPES
 //===============
 
+#pragma pack on
 
 typedef struct
 {
@@ -66,5 +67,7 @@
     int             size;
     char            name[8];
 } filelump_t;
+
+#pragma pack off
 
 #endif
--- a/src/rt_ted.h
+++ b/src/rt_ted.h
@@ -46,6 +46,8 @@
 
 #define MAXTEAMS 11
 
+#pragma pack on
+
 typedef struct
 {
     int nummembers;
@@ -111,6 +113,8 @@
     byte points_to_tiley;
     int linkindex;
 } str_clock;
+
+#pragma pack off
 
 
 extern int  numareatiles[NUMAREAS+1];