Fixed column height so it is now at the last frame in the last setting.

This commit is contained in:
Sakse Dalum 2012-08-11 14:50:51 +02:00
parent 3482944f32
commit c248375bbb
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ class Wheel(block.Block):
def update(self, e, t, dt):
# Update the animation
l = len(self.level.imgs[self.anim])
if not (int(self.frame) == self.setting * l / self.nsettings):
if not (int(self.frame) == self.setting * (l - 1) / (self.nsettings - 1)):
self.frame = ((self.frame + self.anim_speed * dt) % l
if (self.setting > 0 and self.anim_direction > 0)
or (self.setting == self.nsettings - 1