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:
jeefo 2016-10-29 21:01:41 +03:00
commit 684637df03
3 changed files with 23 additions and 14 deletions

View file

@ -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 ())