Browse Source

Include missing header. Remove duplicate structs definitions.

wantedhl
Night Owl 8 years ago
parent
commit
9e262a0e14
  1. 4
      pm_shared/pm_defs.h
  2. 33
      pm_shared/pm_shared.c

4
pm_shared/pm_defs.h

@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
// PM_PlayerTrace results.
#include "pmtrace.h"
#include "com_model.h"
#include "usercmd.h"
// physent_t
@ -218,4 +218,4 @@ typedef struct playermove_s @@ -218,4 +218,4 @@ typedef struct playermove_s
struct pmtrace_s *(*PM_TraceLineEx)( float *start, float *end, int flags, int usehulll, int (*pfnIgnore)( physent_t *pe ));
struct msurface_s *(*PM_TraceSurface)( int ground, float *vstart, float *vend );
} playermove_t;
#endif//PM_DEFS_H
#endif//PM_DEFS_H

33
pm_shared/pm_shared.c

@ -38,41 +38,8 @@ static int pm_shared_initialized = 0; @@ -38,41 +38,8 @@ static int pm_shared_initialized = 0;
#pragma warning( disable : 4305 )
typedef enum
{
mod_brush,
mod_sprite,
mod_alias,
mod_studio
}modtype_t;
playermove_t *pmove = NULL;
typedef struct
{
int planenum;
short children[2]; // negative numbers are contents
}dclipnode_t;
typedef struct mplane_s
{
vec3_t normal; // surface normal
float dist; // closest appoach to origin
byte type; // for texture axis selection and fast side tests
byte signbits; // signx + signy<<1 + signz<<1
byte pad[2];
}mplane_t;
typedef struct hull_s
{
dclipnode_t *clipnodes;
mplane_t *planes;
int firstclipnode;
int lastclipnode;
vec3_t clip_mins;
vec3_t clip_maxs;
} hull_t;
// Ducking time
#define TIME_TO_DUCK 0.4
#define VEC_DUCK_HULL_MIN -18

Loading…
Cancel
Save