[gnome-games] chess: Fix promotion to knight detection



commit 4cd44727a30cb89595b9d25aa864df5b33c13fff
Author: Robert Ancell <robert ancell canonical com>
Date:   Sat Feb 19 17:55:14 2011 +1100

    chess: Fix promotion to knight detection

 glchess/src/chess-game.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glchess/src/chess-game.vala b/glchess/src/chess-game.vala
index f2ab88d..fcd66ef 100644
--- a/glchess/src/chess-game.vala
+++ b/glchess/src/chess-game.vala
@@ -1052,8 +1052,8 @@ public class ChessState
                     promotion_type = PieceType.QUEEN;
                     i++;
                     break;
-                case 'k':
-                    promotion_type = PieceType.KING;
+                case 'n':
+                    promotion_type = PieceType.KNIGHT;
                     i++;
                     break;
                 case 'r':



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