projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e101a5
)
Keep move highlighting in examine move
author
Neil
<neil@dip.sun.ac.za>
Wed, 14 May 2014 20:07:15 +0000
(22:07 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Wed, 14 May 2014 20:07:15 +0000
(22:07 +0200)
naja/widgets/tile.py
patch
|
blob
|
history
diff --git
a/naja/widgets/tile.py
b/naja/widgets/tile.py
index 5d083cce710e153913020763983fd94392bc5874..85f90057ecd35760aaaf858ddf6be72911ce757e 100644
(file)
--- 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: