public: redefine mplane_t, make PlaneIntersect inline, turn BOX_ON_PLANE_SIDE into an inline function instead of a macro

This commit is contained in:
Alibek Omarov
2026-03-26 02:22:36 +05:00
parent d8d1ebf23c
commit acaede2a0d
3 changed files with 46 additions and 36 deletions

View File

@@ -19,6 +19,8 @@ GNU General Public License for more details.
#include "const.h"
#include "bspfile.h" // we need some declarations from it
#include "xash3d_mathlib.h" // mplane_t
/*
==============================================================================
@@ -46,15 +48,6 @@ typedef enum
mod_studio
} modtype_t;
typedef struct mplane_s
{
vec3_t normal;
float dist;
byte type; // for fast side tests
byte signbits; // signx + (signy<<1) + (signz<<1)
byte pad[2];
} mplane_t;
typedef struct
{
vec3_t position;