X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Ftile.py;h=e559d956f57b943295746c239733f4fc1312680b;hb=0bd160dc700e55e996a1ad89e9daf6cdc00c88d8;hp=85f90057ecd35760aaaf858ddf6be72911ce757e;hpb=adc94b74d51f5e20faac9b98257463eb918585fd;p=naja.git diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index 85f9005..e559d95 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -2,7 +2,7 @@ import pygame import pygame.locals as pgl -from naja.constants import TILE_SIZE, BITS, LOCK_HEIGHT, MOVE, EXAMINE +from naja.constants import TILE_SIZE, BITS, LOCK_HEIGHT, EXAMINE from naja.resources import resources from naja.resources.mutators import EIGHT_BIT from naja.widgets.base import Widget @@ -31,7 +31,7 @@ class TileWidget(Widget): # Draw background x, y = abs(self.board_pos[0] - 2), abs(self.board_pos[1] - 2) legal_move = (self.board_pos in self.state.player.legal_moves()) - if self.state.gameboard.player_mode in (MOVE, EXAMINE) and legal_move: + if self.state.gameboard.player_mode == EXAMINE and legal_move: bg = resources.get_image('board/tile_available.png', transforms=(EIGHT_BIT,)) elif (x + y) % 2 == 0: