protocol: restore ReRelease scale

This commit is contained in:
Denis Pauk 2024-12-08 23:37:47 +02:00
parent 032b66b062
commit baa4d8153a
4 changed files with 2 additions and 23 deletions

View file

@ -61,11 +61,7 @@ CL_AddPacketEntities(frame_t *frame)
cent = &cl_entities[s1->number];
effects = s1->effects;
#if _RREXTEND
rr_effects = s1->rr_effects;
#else
rr_effects = 0;
#endif
renderfx = s1->renderfx;
/* set frame */
@ -212,11 +208,7 @@ CL_AddPacketEntities(frame_t *frame)
}
/* store scale */
#if _RREXTEND
VectorCopy(s1->scale, ent.scale);
#else
VectorClear(ent.scale);
#endif
}
/* only used for black hole model right now */

View file

@ -143,7 +143,6 @@ CL_ParseDelta(const entity_xstate_t *from, entity_xstate_t *to, int number, int
VectorCopy(from->origin, to->old_origin);
to->number = number;
#if _RREXTEND
if (cls.serverProtocol != PROTOCOL_VERSION)
{
int i;
@ -154,7 +153,6 @@ CL_ParseDelta(const entity_xstate_t *from, entity_xstate_t *to, int number, int
to->scale[i] = 1.0f;
}
}
#endif
if (IS_QII97_PROTOCOL(cls.serverProtocol))
{
@ -223,8 +221,8 @@ CL_ParseDelta(const entity_xstate_t *from, entity_xstate_t *to, int number, int
if ((bits & U_SKIN8) && (bits & U_SKIN16))
{
to->skinnum = MSG_ReadLong(&net_message);
/* Additional scale with skinnum */
#if _RREXTEND
if (cls.serverProtocol == PROTOCOL_VERSION)
{
int i;
@ -234,7 +232,6 @@ CL_ParseDelta(const entity_xstate_t *from, entity_xstate_t *to, int number, int
to->scale[i] = MSG_ReadFloat(&net_message);
}
}
#endif
}
else if (bits & U_SKIN8)
{
@ -259,7 +256,6 @@ CL_ParseDelta(const entity_xstate_t *from, entity_xstate_t *to, int number, int
}
/* ReRelease effects */
#if _RREXTEND
if (cls.serverProtocol != PROTOCOL_VERSION)
{
to->rr_effects = 0;
@ -279,7 +275,6 @@ CL_ParseDelta(const entity_xstate_t *from, entity_xstate_t *to, int number, int
to->rr_effects = MSG_ReadShort(&net_message);
}
}
#endif
if ((bits & (U_RENDERFX8 | U_RENDERFX16)) == (U_RENDERFX8 | U_RENDERFX16))
{

View file

@ -1262,7 +1262,7 @@ typedef struct entity_xstate_s
/* New protocol fields, sync with entity_rrstate_t */
vec3_t scale; /* model scale */
unsigned int rreffects;
unsigned int rr_effects;
} entity_xstate_t;
/* ============================================== */

View file

@ -505,7 +505,6 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
}
}
#if _RREXTEND
/* Scale with skins if force or different */
if ((protocol == PROTOCOL_VERSION) &&
((to->scale[0] != from->scale[0]) ||
@ -514,7 +513,6 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
{
bits |= (U_SKIN8 | U_SKIN16);
}
#endif
if (to->frame != from->frame)
{
@ -547,12 +545,10 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
}
}
#if _RREXTEND
if (to->rr_effects != from->rr_effects)
{
bits |= U_EFFECTS8 | U_EFFECTS16;
}
#endif
if (to->renderfx != from->renderfx)
{
@ -739,7 +735,6 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
{
MSG_WriteLong(msg, to->skinnum);
#if _RREXTEND
/* Send scale */
if (protocol == PROTOCOL_VERSION)
{
@ -750,7 +745,6 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
MSG_WriteFloat(msg, to->scale[i]);
}
}
#endif
}
else if (bits & U_SKIN8)
@ -778,7 +772,6 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
MSG_WriteShort(msg, to->effects);
}
#if _RREXTEND
/* ReRelease effects */
if (protocol == PROTOCOL_VERSION)
{
@ -797,7 +790,6 @@ MSG_WriteDeltaEntity(const entity_xstate_t *from,
MSG_WriteShort(msg, to->rr_effects);
}
}
#endif
if ((bits & (U_RENDERFX8 | U_RENDERFX16)) == (U_RENDERFX8 | U_RENDERFX16))
{