CBaseEntity: Don't send origin/size info when 0 upon entering PVS
This commit is contained in:
parent
93728d283c
commit
4cf229d946
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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) == '-')
|
||||
|
|
Loading…
Reference in a new issue