From 0674dfd0f4da3abde73d1d594d84e2d47e29adba Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 10 Jul 2006 15:34:40 +0000 Subject: [PATCH] fix for bad hit structure SVN-Revision: 3978 --- src/sector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sector.cpp b/src/sector.cpp index 97bb34998..f488acead 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -925,6 +925,8 @@ Sector::collision_object(MovingObject* object1, MovingObject* object2) const get_hit_normal(r1, r2, hit, normal); HitResponse response1 = object1->collision(*object2, hit); + std::swap(hit.left, hit.right); + std::swap(hit.top, hit.bottom); HitResponse response2 = object2->collision(*object1, hit); if(response1 == CONTINUE || response2 == CONTINUE) { normal *= (0.5 + DELTA); -- 2.11.0