From: Neil Date: Wed, 14 May 2014 20:07:15 +0000 (+0200) Subject: Keep move highlighting in examine move X-Git-Tag: 0.1~299 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=7e9bc2714876bc3288d356578820a22fee60dd1a;p=naja.git Keep move highlighting in examine move --- diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index 5d083cc..85f9005 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -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 == MOVE and legal_move: + if self.state.gameboard.player_mode in (MOVE, EXAMINE) and legal_move: bg = resources.get_image('board/tile_available.png', transforms=(EIGHT_BIT,)) elif (x + y) % 2 == 0: