Draw robot on the world
[naja.git] / naja / widgets / tile.py
index a152f765a102de9511e030b84ec4285337ad04d3..63fbafef09f054666a42234929a1145ad524bf53 100644 (file)
@@ -28,7 +28,7 @@ class TileWidget(Widget):
                           True, [(1, 1), (1, 95), (95, 95), (95, 1)], 2)
         self.surface.convert_alpha(pygame.display.get_surface())
         # Look up the required bits on the board location
-        card = self.state.gameboard.board_locations[self.board_pos]
+        card = self.state.board_locations[self.board_pos]
         bits = []
         for action in card.actions:
             if action.required_bits:
@@ -47,4 +47,4 @@ class TileWidget(Widget):
                 y_offset += 32
 
     def draw(self, surface):
-        surface.blit(self.surface, self.rect)
+        surface.blit(self.surface, self.pos)