// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <iostream>
+#include <math.h>
#include "globals.h"
#include "sprite.h"
}
void
+Sprite::draw_part(float sx, float sy, float x, float y, float w, float h)
+{
+ time = SDL_GetTicks();
+ unsigned int frame = get_current_frame();
+
+ if (frame < surfaces.size())
+ surfaces[frame]->draw_part(sx, sy, x - x_hotspot, y - y_hotspot, w, h);
+}
+
+void
Sprite::reset()
{
time = 0;