Changeset 212:b999abd5993b


Ignore:
Timestamp:
Sep 4, 2009, 9:35:40 PM (11 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@213
Message:

Fix missed status flag in animations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r208 r212  
    164164        x, y = self.vid.view.x, self.vid.view.y
    165165        for anim in self.gameboard.animations[:]:
    166             """Handle completed animations"""
     166            # We process removed animations 1st, so we redraw things correctly
    167167            if anim.removed:
    168168                us.append(pygame.Rect(anim.irect.x - x, anim.irect.y - y,
     
    171171                # Flag the underlying tiles/sprites to be redrawn
    172172                self.vid.alayer[anim.pos.y][anim.pos.x]=1
     173                self.vid.updates.append(anim.pos.to_tuple())
    173174        us.extend(self.vid.update(surface))
    174175        for anim in self.gameboard.animations:
Note: See TracChangeset for help on using the changeset viewer.