[gnome-chess] Disallow resigning for your opponent
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Disallow resigning for your opponent
- Date: Mon, 13 May 2013 02:55:00 +0000 (UTC)
commit 7f3c7020218673709c7cbf1d8842e9685ecc19c8
Author: Michael Catanzaro <mike catanzaro gmail com>
Date: Sun May 12 21:49:40 2013 -0500
Disallow resigning for your opponent
src/gnome-chess.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 8dbd1bf..640d465 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -844,7 +844,7 @@ public class Application : Gtk.Application
private void update_control_buttons ()
{
- var can_resign = game.n_moves > 0;
+ var can_resign = game.n_moves > 0 && game.current_player != opponent;
resign_menu.sensitive = resign_button.sensitive = can_resign;
/* Can undo once the human player has made a move */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]