]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix CSQC being unable to use the "effects" field as its fieldoffset never got initialized
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Sep 2010 06:21:51 +0000 (06:21 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 6 Sep 2010 06:21:51 +0000 (06:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10446 d7cf8633-e32d-0410-b094-e92efae38249

csprogs.c
progsvm.h

index 92a8872057427c86248739ea591706d6b33a34dd..aa438a52a89e14546d58c2ba8c41cedd49589110 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -205,7 +205,7 @@ qboolean CSQC_AddRenderEdict(prvm_edict_t *ed, int edictnum)
        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;
index 323ae71b4832bc3fc68658c45a6c10f981ab6f38..85610510a34a07ea3a623ab00eee037b26276998 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -191,7 +191,6 @@ typedef struct prvm_prog_fieldoffsets_s
        int discardabledemo; // ssqc
        int dphitcontentsmask; // ssqc / csqc
        int drawonlytoclient; // ssqc
-       int effects; // ssqc / csqc
        int exteriormodeltoclient; // ssqc
        int fatness; // ssqc / csqc
        int forceshader; // csqc