Stopped Moodles from being quite so evil.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3197 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0afe8f9dc5
commit
b7c8b33b98
3 changed files with 6 additions and 14 deletions
|
@ -21,16 +21,6 @@
|
|||
#include "shader.h"
|
||||
#endif
|
||||
|
||||
#ifdef MINGW
|
||||
/* Moodles being evil, need these from server.h
|
||||
PMF_JUMP_HELD undeclared (first use in this function)
|
||||
PMF_LADDER undeclared (first use in this function)*/
|
||||
#define PMF_JUMP_HELD 1
|
||||
#define PMF_LADDER 2 //pmove flags. seperate from flags
|
||||
// and this from server "progs.h"
|
||||
#define EDICT_FROM_AREA(l) STRUCT_FROM_LINK(l,edict_t,area)
|
||||
#endif
|
||||
|
||||
//#define CHEAT_PARANOID
|
||||
|
||||
#include "pr_common.h"
|
||||
|
@ -435,6 +425,8 @@ static void CS_LinkEdict(csqcedict_t *ent, qboolean touchtriggers);
|
|||
|
||||
areanode_t cs_areanodes[AREA_NODES];
|
||||
int cs_numareanodes;
|
||||
#define CSEDICT_FROM_AREA(l) STRUCT_FROM_LINK(l,csqcedict_t,area)
|
||||
|
||||
areanode_t *CS_CreateAreaNode (int depth, vec3_t mins, vec3_t maxs)
|
||||
{
|
||||
areanode_t *anode;
|
||||
|
@ -514,7 +506,7 @@ void CS_TouchLinks ( csqcedict_t *ent, areanode_t *node )
|
|||
if (linkcount == MAX_NODELINKS)
|
||||
break;
|
||||
next = l->next;
|
||||
touch = (csqcedict_t*)EDICT_FROM_AREA(l);
|
||||
touch = CSEDICT_FROM_AREA(l);
|
||||
if (touch == ent)
|
||||
continue;
|
||||
|
||||
|
|
|
@ -31,6 +31,9 @@ typedef enum {
|
|||
PM_FREEZE // can't move or look around (TODO)
|
||||
} pmtype_t;
|
||||
|
||||
#define PMF_JUMP_HELD 1
|
||||
#define PMF_LADDER 2 //pmove flags. seperate from flags
|
||||
|
||||
#define MAX_PHYSENTS 128
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -818,9 +818,6 @@ typedef struct
|
|||
#define FL_MOVECHAIN_ANGLE 32768 // when in a move chain, will update the angle
|
||||
#define FL_CLASS_DEPENDENT 2097152
|
||||
|
||||
#define PMF_JUMP_HELD 1
|
||||
#define PMF_LADDER 2 //pmove flags. seperate from flags
|
||||
|
||||
#define PVSF_NORMALPVS 0x0
|
||||
#define PVSF_NOTRACECHECK 0x1
|
||||
#define PVSF_USEPHS 0x2
|
||||
|
|
Loading…
Reference in a new issue