diff --git a/engine/common/cvar.c b/engine/common/cvar.c index b63931b18..0d17065b3 100644 --- a/engine/common/cvar.c +++ b/engine/common/cvar.c @@ -119,8 +119,9 @@ cvar_group_t *Cvar_GetGroup(const char *gname) if (g) return g; - g = (cvar_group_t*)Z_Malloc(sizeof(cvar_group_t)); - g->name = (char*)gname; + g = (cvar_group_t*)Z_Malloc(sizeof(cvar_group_t) + strlen(gname)+1); + g->name = (char*)(g+1); + strcpy(g->name, gname); g->next = NULL; g->next = cvar_groups; cvar_groups = g; diff --git a/engine/common/protocol.h b/engine/common/protocol.h index 54afa632b..ddfef43f2 100644 --- a/engine/common/protocol.h +++ b/engine/common/protocol.h @@ -62,6 +62,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define PEXT_DPFLAGS 0x80000000 //extra flags for viewmodel/externalmodel and possible other persistant style flags. +#ifdef CSQC_DAT +#define PEXT_BIGUSERINFOS PEXT_CSQC +#else +#define PEXT_BIGUSERINFOS 0xffffffff +#endif //ZQuake transparent protocol extensions. #define Z_EXT_PM_TYPE (1<<0) // basic PM_TYPE functionality (reliable jump_held)