From: Matthias Braun Date: Mon, 10 Jul 2006 15:34:40 +0000 (+0000) Subject: fix for bad hit structure X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0674dfd0f4da3abde73d1d594d84e2d47e29adba;p=supertux.git fix for bad hit structure SVN-Revision: 3978 --- 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);