Haywire not moving when jumping on it after freezing
authorTobias Markus <tobbi@mozilla-uk.org>
Sun, 13 Oct 2013 12:14:29 +0000 (14:14 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Sat, 26 Oct 2013 16:45:25 +0000 (18:45 +0200)
src/badguy/haywire.cpp

index b886b14..97d1ead 100644 (file)
@@ -81,6 +81,10 @@ Haywire::collision_squished(GameObject& object)
       player->bounce (*this);
     return true;
   }
+  
+  if(WalkingBadguy::is_frozen()) {
+    WalkingBadguy::unfreeze();
+  }
 
   if (!is_exploding) {
     set_action ((dir == LEFT) ? "ticking-left" : "ticking-right", /* loops = */ -1);