[Core] Add LocalVector::has for convenience

This commit is contained in:
A Thousand Ships 2024-05-06 16:43:04 +02:00
parent d8aa2c65a9
commit 86de59d60a
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
12 changed files with 27 additions and 14 deletions

View file

@ -734,7 +734,7 @@ void NavMap::remove_link(NavLink *p_link) {
}
bool NavMap::has_agent(NavAgent *agent) const {
return (agents.find(agent) >= 0);
return agents.has(agent);
}
void NavMap::add_agent(NavAgent *agent) {
@ -754,7 +754,7 @@ void NavMap::remove_agent(NavAgent *agent) {
}
bool NavMap::has_obstacle(NavObstacle *obstacle) const {
return (obstacles.find(obstacle) >= 0);
return obstacles.has(obstacle);
}
void NavMap::add_obstacle(NavObstacle *obstacle) {