git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5201 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9e8bb446f4
commit
5fcc3d5524
2 changed files with 7 additions and 0 deletions
|
@ -366,18 +366,22 @@ int VMQ3_Cvar_Register(q3vmcvar_t *v, char *name, char *defval, int flags)
|
|||
c = Cvar_Get(name, defval, fteflags, "Q3VM cvars");
|
||||
if (!c) //command name, etc
|
||||
return 0;
|
||||
#ifndef SERVERONLY
|
||||
if ((flags & CVAR_USERINFO) && !(c->flags & CVAR_USERINFO))
|
||||
{
|
||||
c->flags |= CVAR_USERINFO;
|
||||
Info_SetValueForKey(cls.userinfo[0], c->name, c->string, sizeof(cls.userinfo[0]));
|
||||
cls.resendinfo = true;
|
||||
}
|
||||
#endif
|
||||
#ifndef CLIENTONLY
|
||||
if ((flags & CVAR_SERVERINFO) && !(c->flags & CVAR_SERVERINFO))
|
||||
{
|
||||
c->flags |= CVAR_SERVERINFO;
|
||||
Info_SetValueForKey (svs.info, c->name, c->string, MAX_SERVERINFO_STRING);
|
||||
SV_SendServerInfoChange(c->name, c->string);
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < MAX_VMQ3_CVARS; i++)
|
||||
{
|
||||
if (!q3cvlist[i])
|
||||
|
|
|
@ -2712,6 +2712,7 @@ retry:
|
|||
break;
|
||||
default:
|
||||
Sys_Error("Bad struct type");
|
||||
len = 0;
|
||||
}
|
||||
s = PRHunkAlloc(progfuncs, len, "dstatements");
|
||||
QC_decode(progfuncs, PRLittleLong(*(int *)pr_statements16), len, 2, (char *)(((int *)pr_statements16)+1), s);
|
||||
|
@ -2730,6 +2731,7 @@ retry:
|
|||
break;
|
||||
default:
|
||||
Sys_Error("Bad struct type");
|
||||
len = 0;
|
||||
}
|
||||
s = PRHunkAlloc(progfuncs, len, "dglobaldefs");
|
||||
QC_decode(progfuncs, PRLittleLong(*(int *)pr_globaldefs16), len, 2, (char *)(((int *)pr_globaldefs16)+1), s);
|
||||
|
@ -2748,6 +2750,7 @@ retry:
|
|||
break;
|
||||
default:
|
||||
Sys_Error("Bad struct type");
|
||||
len = 0;
|
||||
}
|
||||
s = PRHunkAlloc(progfuncs, len, "progfieldtable");
|
||||
QC_decode(progfuncs, PRLittleLong(*(int *)pr_fielddefs16), len, 2, (char *)(((int *)pr_fielddefs16)+1), s);
|
||||
|
|
Loading…
Reference in a new issue