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

@ -576,7 +576,7 @@ void Bot::updatePickups () {
allowPickup = true;
pickupType = Pickup::PlantedC4;
}
else if (cv_pickup_custom_items.bool_ () && util.isItem(ent) && strncmp ("item_thighpack", classname, 14) != 0) {
else if (cv_pickup_custom_items.bool_ () && util.isItem (ent) && strncmp ("item_thighpack", classname, 14) != 0) {
allowPickup = true;
pickupType = Pickup::None;
}