diff pytouhou/utils/interpolator.py @ 62:1f591adcea04

Fix animation determination (ins_98 stuff) and some interpolation functions
author Thibaut Girka <thib@sitedethib.com>
date Wed, 24 Aug 2011 21:16:14 +0200
parents af7914413b89
children 174324a4da51
line wrap: on
line diff
--- a/pytouhou/utils/interpolator.py
+++ b/pytouhou/utils/interpolator.py
@@ -48,7 +48,8 @@ class Interpolator(object):
 
     def update(self, frame):
         self._frame = frame
-        if frame >= self.end_frame - 1:
+        if frame >= self.end_frame - 1: #XXX: skip the last interpolation step
+            # This bug is replicated from the original game
             self.values = tuple(self.end_values)
             self.start_values = tuple(self.end_values)
             self.start_frame = frame