fixed animation artifacts

--HG--
branch : vssg
This commit is contained in:
cecilkorik 2007-01-26 06:37:55 +00:00
parent 9e4221c951
commit cec747e423

View file

@ -112,6 +112,7 @@ class StarClass(object):
dest = self.frames[frame].get_rect() dest = self.frames[frame].get_rect()
dest.x = x - (dest.w / 2) + 1 dest.x = x - (dest.w / 2) + 1
dest.y = y - (dest.h / 2) + 1 dest.y = y - (dest.h / 2) + 1
pygame.draw.rect(surf, (0,0,0), dest)
surf.blit(self.frames[frame], dest) surf.blit(self.frames[frame], dest)
if id(star.map.selection) == id(star): if id(star.map.selection) == id(star):
surf.blit(star.map.selectionpng, dest) surf.blit(star.map.selectionpng, dest)