CBaseEntity: Don't send origin/size info when 0 upon entering PVS

This commit is contained in:
Marco Cawthorne 2021-01-22 16:05:40 +01:00
parent 93728d283c
commit 4cf229d946
2 changed files with 5 additions and 1 deletions

View file

@ -614,8 +614,12 @@ CBaseEntity::SendEntity(entity ePEnt, float fChanged)
fChanged &= ~BASEFL_CHANGED_BODY;
if (scale == 0.0 || scale == 1.0)
fChanged &= ~BASEFL_CHANGED_SCALE;
if (origin == [0,0,0])
fChanged &= ~BASEFL_CHANGED_ORIGIN;
if (angles == [0,0,0])
fChanged &= ~BASEFL_CHANGED_ANGLES;
if (mins == [0,0,0] && maxs == [0,0,0])
fChanged &= ~BASEFL_CHANGED_SIZE;
if (solid == SOLID_NOT)
fChanged &= ~BASEFL_CHANGED_SOLID;
if (movetype == MOVETYPE_NONE)

View file

@ -96,7 +96,7 @@ enum
string
Materials_FixName(string tex_name)
{
dprint(sprintf("^3material_fixname^7: %s > ", tex_name));
dprint(sprintf("^3Materials_FixName^7: %s > ", tex_name));
/* strip the first 2 chars when they're frame/random indicators */
if (str2chr(tex_name, 0) == '-')