dispense with movement mode
[naja.git] / naja / widgets / tile.py
index 85f90057ecd35760aaaf858ddf6be72911ce757e..e559d956f57b943295746c239733f4fc1312680b 100644 (file)
@@ -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: