[gnome-chess] Game duration should be twice each player's



commit d3c40c657238a947173baf7e86e30a0311a5ea31
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Mon May 20 20:48:17 2013 -0500

    Game duration should be twice each player's
    
    E.g. a 30 minute game means 15 minutes per player. Previously each
    player was getting double the appropriate amount of time.

 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 7ed43d9..e80badd 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -404,7 +404,7 @@ public class Application : Gtk.Application
                 /* We only support simple timeouts */
                 var duration = int.parse (control);
                 if (duration > 0)
-                    game.clock = new ChessClock (duration, duration);
+                    game.clock = new ChessClock (duration/2, duration/2);
             }
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]