Fixed problems with Rockets and Cannons sometimes reversing direction on
[supertux.git] / src / badguy / mrtree.hpp
index 8253a21..652a00e 100644 (file)
@@ -33,12 +33,13 @@ public:
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
   HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
 
+  virtual MrTree* clone() const { return new MrTree(*this); }
+
 protected:
   enum MyState {
     STATE_BIG, STATE_INVINCIBLE, STATE_NORMAL
   };
   MyState mystate;
-  bool stay_on_platform;
 
   Timer invincible_timer;