mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Don't send a voice chat message if the entity is not sent to clients
This commit is contained in:
parent
e74e113199
commit
aeb8aa8e55
1 changed files with 6 additions and 0 deletions
|
@ -10566,6 +10566,12 @@ void Player::EventDMMessage(Event *ev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (edict->r.svFlags & SVF_NOCLIENT) {
|
||||
// Changed in OPM
|
||||
// Don't send a voice chat message if the entity is not sent to client
|
||||
return;
|
||||
}
|
||||
|
||||
if (!g_instamsg_allowed->integer) {
|
||||
// Added in OPM
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue