From 2fe3028412516da01975ea345286a92910a41363 Mon Sep 17 00:00:00 2001 From: mathnerd314 Date: Sun, 4 Apr 2010 18:14:40 +0000 Subject: [PATCH] Fill in hit properly for slopes (bouncing snowballs look slightly weird) git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6630 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/supertux/collision.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/supertux/collision.cpp b/src/supertux/collision.cpp index 99282faf8..95fbbbbc6 100644 --- a/src/supertux/collision.cpp +++ b/src/supertux/collision.cpp @@ -124,8 +124,10 @@ bool rectangle_aatriangle(Constraints* constraints, const Rectf& rect, } else { if(outvec.x < 0) { constraints->constrain_right(rect.get_right() + outvec.x, addl_ground_movement.x); + constraints->hit.right = true; } else { constraints->constrain_left(rect.get_left() + outvec.x, addl_ground_movement.x); + constraints->hit.left = true; } if(outvec.y < 0) { -- 2.11.0