Improve player networking.
This commit is contained in:
parent
a94f19a5fc
commit
fa6b1fb38f
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue