Claim draw is only allowed on your own turn
This commit is contained in:
parent
af8f4d798d
commit
9fcb7455a8
1 changed files with 3 additions and 1 deletions
|
@ -849,7 +849,9 @@ public class Application : Gtk.Application
|
|||
{
|
||||
var can_resign = game.n_moves > 0;
|
||||
resign_menu.sensitive = resign_button.sensitive = can_resign;
|
||||
claim_draw_menu.sensitive = can_resign;
|
||||
|
||||
/* Claim draw only allowed on your own turn */
|
||||
claim_draw_menu.sensitive = can_resign && game.current_player != opponent;
|
||||
|
||||
/* Can undo once the human player has made a move */
|
||||
var can_undo = game.n_moves > 0;
|
||||
|
|
Loading…
Reference in a new issue