#include "pr_comp.h" // defs shared with qcc
#include "progdefs.h" // generated by program cdefs
+#include "clprogdefs.h" // generated by program cdefs
/*
typedef union vm_eval_s
union
{
void *vp;
- entvars_t *server;
+ entvars_t *server;
+ cl_entvars_t *client;
} fields;
} prvm_edict_t;
-#define PRVM_GETEDICTFIELDVALUE(ed, fieldoffset) (fieldoffset ? (prvm_eval_t *)((qbyte *)ed->fields.vp + fieldoffset) : NULL)
+#define PRVM_GETEDICTFIELDVALUE(ed, fieldoffset) (fieldoffset ? (prvm_eval_t *)((unsigned char *)ed->fields.vp + fieldoffset) : NULL)
/*// this struct is the basic requirement for a qc prog
typedef struct prvm_pr_globalvars_s
union {
float *generic;
globalvars_t *server;
+ cl_globalvars_t *client;
} globals;
int maxknownstrings;
// (simple optimization of the free string search)
int firstfreeknownstring;
const char **knownstrings;
- qbyte *knownstrings_freeable;
+ unsigned char *knownstrings_freeable;
const char ***stringshash;
// all memory allocations related to this vm_prog (code, edicts, strings)