Changed the way the scrolling was calculated. Instead of calculating it relatively...
[supertux.git] / src / particlesystem.h
index 8efdf95..01ba586 100644 (file)
@@ -16,6 +16,7 @@
 //  You should have received a copy of the GNU General Public License
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
 #ifndef SUPERTUX_PARTICLESYSTEM_H
 #define SUPERTUX_PARTICLESYSTEM_H
 
@@ -56,7 +57,7 @@ protected:
 
         float x, y;
         int layer;
-        texture_type* texture;
+        Surface* texture;
     };
     
     std::vector<Particle*> particles;
@@ -78,7 +79,7 @@ private:
         float speed;
     };
     
-    texture_type snowimages[3];
+    Surface* snowimages[3];
 };
 
 class CloudParticleSystem : public ParticleSystem
@@ -96,7 +97,7 @@ private:
         float speed;
     };
     
-    texture_type cloudimage;
+    Surface* cloudimage;
 };
 
 #endif