Claim draw is only allowed on your own turn

This commit is contained in:
Michael Catanzaro 2013-05-26 13:31:34 -05:00
parent af8f4d798d
commit 9fcb7455a8

View file

@ -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;