Fixed squished Skullyhops looking healthy again after hitting the floor
authorChristoph Sommer <mail@christoph-sommer.de>
Wed, 16 Aug 2006 23:25:39 +0000 (23:25 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Wed, 16 Aug 2006 23:25:39 +0000 (23:25 +0000)
SVN-Revision: 4192

src/badguy/skullyhop.cpp

index a1fab84..8d2dbca 100644 (file)
@@ -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;