projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0449352
)
Changed check to determine oif Tux squishes a badguy
author
Ryan Flegel
<rflegel@gmail.com>
Tue, 25 Apr 2006 19:37:15 +0000
(19:37 +0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Tue, 25 Apr 2006 19:37:15 +0000
(19:37 +0000)
SVN-Revision: 3434
src/badguy/badguy.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/badguy.cpp
b/src/badguy/badguy.cpp
index
ee2e347
..
3b35c5c
100644
(file)
--- a/
src/badguy/badguy.cpp
+++ b/
src/badguy/badguy.cpp
@@
-181,9
+181,7
@@
BadGuy::collision_player(Player& player, const CollisionHit& )
*/
// hit from above?
- if(player.get_movement().y /*- get_movement().y*/ > 0
- && player.get_bbox().p2.y <
- (get_bbox().p1.y + get_bbox().p2.y) / 2) {
+ if(player.get_bbox().p2.y < (bbox.p1.y + 16)) {
// if it's not possible to squish us, then this will hurt
if(collision_squished(player))
return ABORT_MOVE;