Fix issue with action not being updated when typing grow()/fire()/etc in console...
[supertux.git] / src / object / firefly.hpp
index b167b3a..6325087 100644 (file)
@@ -23,6 +23,7 @@
 #include "lisp/lisp.hpp"
 #include "object/moving_sprite.hpp"
 #include "serializable.hpp"
+#include "badguy/badguy.hpp"
 
 /**
  * A Firefly: When tux touches it, it begins buzzing and you will respawn at this
@@ -39,7 +40,8 @@ public:
 
 private:
   bool activated;
+  Vector initial_position; /**< position as in level file. This is where Tux will have to respawn, as the level is reset every time */
+  void reactivate();
 };
 
 #endif
-