huge CVS merge, see ChangeLog for details.
[supertux.git] / src / type.c
index e18a475..d6f9347 100644 (file)
 #include "type.h"
 #include "scene.h"
 
-double get_frame_ratio(base_type* pbase)
-{
-  unsigned int cur_time = SDL_GetTicks();
-  double frame_ratio = (float)(cur_time-pbase->updated)/(float)(FRAME_RATE);
-  pbase->updated = cur_time;
-  return (frame_ratio == 0 ? 1 : frame_ratio);
-}
+