Use vector instead of forward_list for dpGrid

also swap contains in for find != end on an associative container since we are in c++20 now :)
This commit is contained in:
David Markowitz
2024-02-04 06:10:07 -08:00
parent 050184c558
commit f2e7d2eaac
3 changed files with 44 additions and 48 deletions

View File

@@ -76,7 +76,7 @@ void dpEntity::CheckCollision(dpEntity* other) {
return;
}
bool wasFound = (m_CurrentlyCollidingObjects.find(other->GetObjectID()) != m_CurrentlyCollidingObjects.end());
bool wasFound = m_CurrentlyCollidingObjects.contains(other->GetObjectID());
bool isColliding = m_CollisionShape->IsColliding(other->GetShape());