Improve player networking.

This commit is contained in:
Marco Cawthorne 2022-05-01 17:01:30 -07:00
parent a94f19a5fc
commit fa6b1fb38f
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -216,13 +216,11 @@ player::SendEntity
float
player::SendEntity(entity ePEnt, float fChanged)
{
if (health <= 0 && ePEnt != this) {
/* don't broadcast invisible players */
if (IsFakeSpectator() && ePEnt != this)
return (0);
}
if (clienttype(ePEnt) != CLIENTTYPE_REAL) {
if (!GetModelindex() && ePEnt != this)
return (0);
}
if (ePEnt != self) {
fChanged &= ~PLAYER_ITEMS;