Do not use strstr()
This commit is contained in:
parent
da275733bc
commit
7da58623be
3 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue