mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Only set the infoclient if it's a teammate player that can be sent to other clients
This commit is contained in:
parent
f31ea39331
commit
0fb775cd60
1 changed files with 1 additions and 1 deletions
|
@ -7285,7 +7285,7 @@ void Player::UpdateStats(void)
|
|||
|
||||
trace = G_Trace(m_vViewPos, vec_zero, vec_zero, vEnd, this, MASK_BEAM, qfalse, "infoclientcheck");
|
||||
|
||||
if (trace.ent && trace.ent->entity->IsSubclassOfPlayer()) {
|
||||
if (trace.ent && trace.ent->entity->IsSubclassOfPlayer() && !(trace.ent->r.svFlags & SVF_NOCLIENT)) {
|
||||
Player *p = static_cast<Player *>(trace.ent->entity);
|
||||
|
||||
if (IsSpectator() || p->GetTeam() == GetTeam()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue