X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2Fai.cpp;h=0d4c9e9158256011e3477e595a93472cd52d4e8a;hb=f40ef0f5cc3d451c3789112e760719abb393ac03;hp=a2f5938eb707c3c58fc9199c3759a935b51a3393;hpb=4727825186798902f68df5b99a6a32f0ef618454;p=blank.git diff --git a/src/ai/ai.cpp b/src/ai/ai.cpp index a2f5938..0d4c9e9 100644 --- a/src/ai/ai.cpp +++ b/src/ai/ai.cpp @@ -169,7 +169,7 @@ Player *AIController::ClosestVisiblePlayer(const Entity &e) noexcept { // LOS test, assumes all entities are see-through WorldCollision col; - if (world.Intersection(aim, glm::mat4(1.0f), reference, col) && col.depth < dist) { + if (world.Intersection(aim, reference, col) && col.depth < dist) { continue; } @@ -189,7 +189,7 @@ bool AIController::LineOfSight(const Entity &from, const Entity &to) const noexc return false; } WorldCollision col; - if (world.Intersection(aim, glm::mat4(1.0f), reference, col) && col.depth < dist) { + if (world.Intersection(aim, reference, col) && col.depth < dist) { return false; } return true;