projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e13c584
)
Fill in hit properly for slopes (bouncing snowballs look slightly weird)
author
Mathnerd314
<man.is.allan@gmail.com>
Sun, 4 Apr 2010 18:14:40 +0000
(18:14 +0000)
committer
Mathnerd314
<man.is.allan@gmail.com>
Sun, 4 Apr 2010 18:14:40 +0000
(18:14 +0000)
SVN-Revision: 6630
src/supertux/collision.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/collision.cpp
b/src/supertux/collision.cpp
index
99282fa
..
95fbbbb
100644
(file)
--- 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) {