Fixed MrTree. He uses activate() to change direction which is now working again.
[supertux.git] / src / badguy / dart.hpp
index aaebdc2..1c6a3d3 100644 (file)
@@ -30,7 +30,7 @@ class Dart : public BadGuy
 {
 public:
   Dart(const lisp::Lisp& reader);
-  Dart(float pos_x, float pos_y, Direction d, const BadGuy* parent);
+  Dart(const Vector& pos, Direction d, const BadGuy* parent);
   Dart(const Dart& dart);
   ~Dart();
 
@@ -52,7 +52,7 @@ protected:
   bool set_direction;
   Direction initial_direction;
   const BadGuy* parent; /**< collisions with this BadGuy will be ignored */
-  SoundSource* soundSource; /**< SoundSource for ambient sound */
+  std::auto_ptr<SoundSource> sound_source; /**< SoundSource for ambient sound */
 };
 
 #endif