ref: abf5ff94061e3760bdbc54b8f2839fe77f57bdf4
parent: d68bbdb4989c6ebca698ad3bc729a748af5de8ef
author: Jacob Moody <[email protected]>
date: Fri Jan 27 00:40:41 EST 2023
more agressive packing just superstition? maybe
--- a/h2def.h
+++ b/h2def.h
@@ -11,6 +11,8 @@
#ifndef __H2DEF__
#define __H2DEF__
+#pragma pack on
+
/* if rangecheck is undefined, most parameter
* validation debugging code will not be compiled
*/
@@ -1689,6 +1691,8 @@
void V_DrawShadowedPatch(int x, int y, patch_t *patch);
void V_BlitToScreen (int x, int y, byte *buffer, int width, int height);
void V_DrawRawScreen(byte *raw);
+
+#pragma pack off
#include "sounds.h"
--- a/p_spec.h
+++ b/p_spec.h
@@ -79,7 +79,9 @@
void P_InitLightning(void);
void P_ForceLightning(void);
+#pragma pack on
+
/* ---- P_LIGHTS ---- */
typedef enum
@@ -460,8 +462,6 @@
ASTE_WAITINGFORSCRIPT,
ASTE_TERMINATING
} aste_t;
-
-#pragma pack on
typedef struct acs_s acs_t;
typedef struct acsInfo_s acsInfo_t;
--- a/w_wad.c
+++ b/w_wad.c
@@ -42,6 +42,8 @@
// TYPES -------------------------------------------------------------------
+
+#pragma pack on
typedef struct
{
char identification[4];
@@ -55,6 +57,7 @@
int size;
char name[8];
} filelump_t;
+#pragma pack off
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
--- a/xddefs.h
+++ b/xddefs.h
@@ -65,8 +65,6 @@
short sidenum[2]; /* sidenum[1] will be -1 if one sided */
} maplinedef_t;
-#pragma pack off
-
#define ML_BLOCKING 0x0001
#define ML_BLOCKMONSTERS 0x0002
#define ML_TWOSIDED 0x0004
@@ -88,9 +86,6 @@
#define SPAC_IMPACT 3 /* when projectile hits line */
#define SPAC_PUSH 4 /* when player/monster pushes line */
#define SPAC_PCROSS 5 /* when projectile crosses line */
-
-
-#pragma pack on
typedef struct
{