Ensure kicking player has FL_FAKECLIENT bit set and his name length greater than zero.
Replaced "_mm_load_ss" with "_mm_set1_ps" in A_sqrtf. Should fix minor problems. When simulate sound play for bots, verify that issuer origin is not zero. Enable by default smart bot kick management for autovacation.
This commit is contained in:
parent
7d531ee451
commit
684637df03
3 changed files with 23 additions and 14 deletions
|
|
@ -722,6 +722,10 @@ void SoundAttachToClients (edict_t *ent, const char *sample, float volume)
|
|||
return;
|
||||
|
||||
const Vector &origin = engine.GetAbsOrigin (ent);
|
||||
|
||||
if (origin.IsZero ())
|
||||
return;
|
||||
|
||||
int index = engine.IndexOfEntity (ent) - 1;
|
||||
|
||||
if (index < 0 || index >= engine.MaxClients ())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue