mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user