Do not use strstr()

This commit is contained in:
jeefo 2020-12-03 17:27:11 +03:00
commit 7da58623be
3 changed files with 5 additions and 5 deletions

View file

@ -256,10 +256,10 @@ bool Bot::lookupEnemies () {
// ignore shielded enemies, while we have real one
edict_t *shieldEnemy = nullptr;
if (cv_attack_monsters. bool_()) {
if (cv_attack_monsters.bool_ ()) {
// search the world for monsters...
for (const auto &intresting : bots.getIntrestingEntities ()) {
if (!util.isMonster(intresting)) {
if (!util.isMonster (intresting)) {
continue;
}