From: havoc Date: Wed, 18 Apr 2007 11:13:57 +0000 (+0000) Subject: changed protocol code to always send origin as low precision if X-Git-Tag: xonotic-v0.1.0preview~3298 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=842f0c0ad5699ca4a5ec3a83e698111649b4dd2e;p=xonotic%2Fdarkplaces.git changed protocol code to always send origin as low precision if possible, except for exteriormodel's (such as the player itself), this means the only effect of EF_LOWPRECISION is lower precision angles git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7132 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/protocol.c b/protocol.c index 862b47c9..8b4d2b9a 100644 --- a/protocol.c +++ b/protocol.c @@ -1783,7 +1783,6 @@ int EntityState5_Priority(entityframe5_database_t *d, int stateindex) void EntityState5_WriteUpdate(int number, const entity_state_t *s, int changedbits, sizebuf_t *msg) { unsigned int bits = 0; - qboolean lowprecision; prvm_eval_t *val; val = PRVM_EDICTFIELDVALUE((&prog->edicts[s->number]), prog->fieldoffsets.SendEntity); @@ -1795,10 +1794,9 @@ void EntityState5_WriteUpdate(int number, const entity_state_t *s, int changedbi else { bits = changedbits; - lowprecision = (s->flags & RENDER_LOWPRECISION); - if ((bits & E5_ORIGIN) && (!lowprecision || s->origin[0] < -4096 || s->origin[0] >= 4096 || s->origin[1] < -4096 || s->origin[1] >= 4096 || s->origin[2] < -4096 || s->origin[2] >= 4096)) + if ((bits & E5_ORIGIN) && !(s->flags & RENDER_EXTERIORMODEL) && (s->origin[0] < -4096 || s->origin[0] >= 4096 || s->origin[1] < -4096 || s->origin[1] >= 4096 || s->origin[2] < -4096 || s->origin[2] >= 4096)) bits |= E5_ORIGIN32; - if ((bits & E5_ANGLES) && !lowprecision) + if ((bits & E5_ANGLES) && !(s->flags & RENDER_LOWPRECISION)) bits |= E5_ANGLES16; if ((bits & E5_MODEL) && s->modelindex >= 256) bits |= E5_MODEL16;