Patch by Matt McCutchen to prevent division by zero when Tux spawns exactly at a...
[supertux.git] / src / badguy / flame.hpp
index 303c698..bfb0ed2 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "badguy.hpp"
 
+#include "audio/sound_source.hpp"
+
 class Flame : public BadGuy
 {
 public:
@@ -34,15 +36,12 @@ public:
   void active_update(float elapsed_time);
   void kill_fall();
 
-  virtual Flame* clone() const { return new Flame(*this); }
-
 private:
   float angle;
   float radius;
   float speed;
 
-  std::auto_ptr<SoundSource> source;
+  std::auto_ptr<SoundSource> sound_source;
 };
 
 #endif
-