From d872eb0b55f935646b5f28314b79ab15bafb4443 Mon Sep 17 00:00:00 2001 From: tovjemam Date: Fri, 15 Aug 2025 21:35:31 +0200 Subject: [PATCH] Fix basis passed to TestPortalContact --- src/game/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/entity.cpp b/src/game/entity.cpp index 942f872..5cf0152 100644 --- a/src/game/entity.cpp +++ b/src/game/entity.cpp @@ -167,11 +167,11 @@ bool game::EntityOccurrence::Sweep(const glm::vec3& target_position, float& hit_ { if (hit_portal) { - *hit_portal = sector_->TestPortalContact(bt_capsule_, basis_, position_); + *hit_portal = sector_->TestPortalContact(bt_capsule_, inv_normal_basis_, position_); if (!*hit_portal) { - *hit_portal = sector_->TestPortalContact(bt_capsule_, basis_, target_position); + *hit_portal = sector_->TestPortalContact(bt_capsule_, inv_normal_basis_, target_position); } }