}
//[515]: these are required funcs
-static char *cl_required_func[] =
+static const char *cl_required_func[] =
{
"CSQC_Init",
"CSQC_InputEvent",
if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_angles)))
VectorCopy(cl.viewangles, val->vector);
+ if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_punchangle)))
+ VectorCopy(cl.punchangle, val->vector);
+ if ((val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.view_punchvector)))
+ VectorCopy(cl.punchvector, val->vector);
prog->globals.client->maxclients = cl.maxclients;
CSQC_END
}
if((val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.scale)) && val->_float) entrender->scale = scale = val->_float;
if((val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.colormod)) && VectorLength2(val->vector)) VectorCopy(val->vector, entrender->colormod);
if((val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.glowmod)) && VectorLength2(val->vector)) VectorCopy(val->vector, entrender->glowmod);
- if((val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.effects)) && val->_float) entrender->effects |= (int)val->_float;
+ if(ed->fields.client->effects) entrender->effects |= (int)ed->fields.client->effects;
if((val = PRVM_EDICTFIELDVALUE(ed, prog->fieldoffsets.tag_entity)) && val->edict)
{
int tagentity;