X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftile.py;h=63fbafef09f054666a42234929a1145ad524bf53;hb=c56b1ffc5ce58be37ae4644327c7a6d4a92b1102;hp=a152f765a102de9511e030b84ec4285337ad04d3;hpb=ee32cda1beebfdc07234f393bf39bb948b36a39a;p=naja.git diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index a152f76..63fbafe 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -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)