[gnome-chess] Don't pretend engine has resigned if it quits
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Don't pretend engine has resigned if it quits
- Date: Sun, 25 Aug 2013 18:12:39 +0000 (UTC)
commit 23f805736c1b4578ab389f83c909d29bb327c15d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Aug 25 13:10:36 2013 -0500
Don't pretend engine has resigned if it quits
If the engine stops while the game is still in progress, there's a big
problem and you will not go to space today. Inform the user, rather
than pretending the opponent just gave up.
src/gnome-chess.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 39d63e2..da61e63 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -673,8 +673,7 @@ public class Application : Gtk.Application
private void engine_stopped_cb (ChessEngine engine)
{
- // FIXME should print a different message than normal resign
- opponent.resign ();
+ game.stop (ChessResult.BUG, ChessRule.BUG);
}
private void engine_error_cb (ChessEngine engine)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]