Keep move highlighting in examine move
authorNeil <neil@dip.sun.ac.za>
Wed, 14 May 2014 20:07:15 +0000 (22:07 +0200)
committerNeil <neil@dip.sun.ac.za>
Wed, 14 May 2014 20:07:15 +0000 (22:07 +0200)
naja/widgets/tile.py

index 5d083cce710e153913020763983fd94392bc5874..85f90057ecd35760aaaf858ddf6be72911ce757e 100644 (file)
@@ -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: