projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab215c4
)
Fixed squished Skullyhops looking healthy again after hitting the floor
author
Christoph Sommer
<mail@christoph-sommer.de>
Wed, 16 Aug 2006 23:25:39 +0000
(23:25 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Wed, 16 Aug 2006 23:25:39 +0000
(23:25 +0000)
SVN-Revision: 4192
src/badguy/skullyhop.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/skullyhop.cpp
b/src/badguy/skullyhop.cpp
index
a1fab84
..
8d2dbca
100644
(file)
--- a/
src/badguy/skullyhop.cpp
+++ b/
src/badguy/skullyhop.cpp
@@
-94,6
+94,11
@@
SkullyHop::collision_squished(Player& player)
void
SkullyHop::collision_solid(const CollisionHit& hit)
{
+ // just default behaviour (i.e. stop at floor/walls) when squished
+ if (BadGuy::get_state() == STATE_SQUISHED) {
+ BadGuy::collision_solid(hit);
+ }
+
// ignore collisions while standing still
if(state != JUMPING)
return;