fix broken color state management
[supertux.git] / src / sprite / sprite.hpp
index f37c473..a3edb33 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <string>
 #include <assert.h>
-#include <SDL.h>
 
 #include "math/vector.hpp"
 #include "math/rect.hpp"
@@ -32,7 +31,6 @@
 
 class Surface;
 class DrawingContext;
-class Color;
 class Blend;
 
 class Sprite
@@ -110,7 +108,7 @@ public:
   /** Set current frame */
   void set_frame(int frame)
   {
-    this->frame = (frame % get_frames());
+    this->frame = (float) (frame % get_frames());
   }
   Surface* get_frame(unsigned int frame)
   {