]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - protocol.c
... forgot to add the files, I'm too used to git now :P
[xonotic/darkplaces.git] / protocol.c
index 6044e8678d810dfa62d3513489e3010dd7654481..31c2e54c6eeb6b32487706ea6e608c54820afb4f 100644 (file)
@@ -302,7 +302,7 @@ void EntityFrameCSQC_LostFrame(client_t *client, int framenum)
        int i, j, n;
        qboolean valid;
        int ringfirst, ringlast;
-       int recoversendflags[MAX_EDICTS];
+       static int recoversendflags[MAX_EDICTS];
        csqcentityframedb_t *d;
 
        n = client->csqcnumedicts;
@@ -2032,8 +2032,8 @@ void EntityState5_WriteUpdate(int number, const entity_state_t *s, int changedbi
        else
        {
                bits = changedbits;
-               if ((bits & E5_ORIGIN) && !(s->flags & RENDER_LOWPRECISION) && (s->exteriormodelforclient || s->tagentity || s->viewmodelforclient || (s->number >= 1 && s->number <= svs.maxclients) || s->origin[0] <= -4096.0625 || s->origin[0] >= 4095.9375 || s->origin[1] <= -4096.0625 || s->origin[1] >= 4095.9375 || s->origin[2] <= -4096.0625 || s->origin[2] >= 4095.9375))
-               // maybe also add: ((model = sv.models[s->modelindex]) != NULL && model->name[0] == '*')
+               if ((bits & E5_ORIGIN) && (!(s->flags & RENDER_LOWPRECISION) || s->exteriormodelforclient || s->tagentity || s->viewmodelforclient || (s->number >= 1 && s->number <= svs.maxclients) || s->origin[0] <= -4096.0625 || s->origin[0] >= 4095.9375 || s->origin[1] <= -4096.0625 || s->origin[1] >= 4095.9375 || s->origin[2] <= -4096.0625 || s->origin[2] >= 4095.9375))
+               // maybe also add: ((model = SV_GetModelByIndex(s->modelindex)) != NULL && model->name[0] == '*')
                        bits |= E5_ORIGIN32;
                        // possible values:
                        //   negative origin: