# HG changeset patch # User Neil Muller # Date 1252100140 0 # Node ID b999abd5993b50039c7dd5af7012b47eff245d5f # Parent f65e4e5b7347a682233a268379448d0e04112f10 Fix missed status flag in animations diff -r f65e4e5b7347 -r b999abd5993b gamelib/gameboard.py --- a/gamelib/gameboard.py Fri Sep 04 21:30:33 2009 +0000 +++ b/gamelib/gameboard.py Fri Sep 04 21:35:40 2009 +0000 @@ -163,13 +163,14 @@ us = [] x, y = self.vid.view.x, self.vid.view.y for anim in self.gameboard.animations[:]: - """Handle completed animations""" + # We process removed animations 1st, so we redraw things correctly if anim.removed: us.append(pygame.Rect(anim.irect.x - x, anim.irect.y - y, anim.irect.width, anim.irect.height)) self.gameboard.animations.remove(anim) # Flag the underlying tiles/sprites to be redrawn self.vid.alayer[anim.pos.y][anim.pos.x]=1 + self.vid.updates.append(anim.pos.to_tuple()) us.extend(self.vid.update(surface)) for anim in self.gameboard.animations: if anim.updated: