Bug 332194

Summary: Human Pawn Promotion Remains At Queen
Product: [Applications] knights Reporter: Dave Kaye <d_k>
Component: generalAssignee: Miha Čančula <miha>
Status: RESOLVED FIXED    
Severity: normal CC: kde-games-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch for bug 332194
Test game for promotion

Description Dave Kaye 2014-03-15 20:38:05 UTC
When a human player promotes a pawn, a dialog box appears allowing the player to select the piece the pawn is to be promoted to.  Selecting any piece will not cause that piece to appear on the board.  Instead, the Queen will appear on the board.  The move history does correctly show the piece that was selected.

Reproducible: Always

Steps to Reproduce:
1. Play game until ready to promote a pawn
2. Select Rook from the dialog box as the piece to be promoted to
3.
Actual Results:  
Piece displayed on board was the Queen and  piece moves like Queen.
Move history shows promotion move with Rook as the piece promoted to.
Creating a PGN file shows Rook as the piece promoted to.

Expected Results:  
Piece displayed should be Rook.
Comment 1 Dave Kaye 2014-03-17 23:41:31 UTC
Created attachment 85620 [details]
Patch for bug 332194

Will work on both 2.5.0 and 2.4.2 versions
Comment 2 Dave Kaye 2014-03-17 23:43:25 UTC
Created attachment 85621 [details]
Test game for promotion

A test game in pgn file notation where both sides are only a couple of moves away from pawn promotion.
Comment 3 Alexander Semke 2016-04-03 08:08:21 UTC
Git commit ba50b876c11e31e692cbca1a37853322cb4cb942 by Alexander Semke.
Committed on 03/04/2016 at 08:07.
Pushed by asemke into branch 'master'.

Fixed incorrect promotion.

M  +3    -1    src/core/move.cpp

http://commits.kde.org/knights/ba50b876c11e31e692cbca1a37853322cb4cb942