Fix music not properly fading in again
[supertux.git] / src / object / particlesystem.hpp
index 32259b1..d02a63b 100644 (file)
@@ -22,8 +22,8 @@
 #include "math/vector.hpp"
 #include "supertux/game_object.hpp"
 #include "util/reader.hpp"
+#include "video/surface_ptr.hpp"
 
-class Surface;
 class DisplayManager;
 
 /**
@@ -55,14 +55,17 @@ protected:
   public:
     Particle() :
       pos(),
+      angle(),
       texture()
     {}
-   
+
     virtual ~Particle()
     {}
 
     Vector pos;
-    Surface* texture;
+    // angle at which to draw particle
+    float angle;
+    SurfacePtr texture;
 
   private:
     Particle(const Particle&);