Don't scrible on the original image
authorNeil <neil@dip.sun.ac.za>
Tue, 13 May 2014 19:42:00 +0000 (21:42 +0200)
committerNeil <neil@dip.sun.ac.za>
Tue, 13 May 2014 19:42:00 +0000 (21:42 +0200)
naja/widgets/robot.py

index cbeba2e73443d4e8e75fe220033c32e00e59ba09..9f3afc69948da5eb959b862dc660ddc88ba20f0d 100644 (file)
@@ -28,7 +28,7 @@ class RobotWidget(Widget):
         self.pos = (self.state.player.position[0] * TILE_SIZE[0],
                     self.state.player.position[1] * TILE_SIZE[1] + BIT_SIZE[1])
         self.surface = resources.get_image('board/robot.png',
-                                           transforms=(EIGHT_BIT,))
+                                           transforms=(EIGHT_BIT,)).copy()
         for bit, img_name in IMG_MAP.iteritems():
             if self.state.player.bits.check_bit(bit):
                 bit_img = resources.get_image(img_name,