Bug 332194 - Human Pawn Promotion Remains At Queen
Summary: Human Pawn Promotion Remains At Queen
Status: RESOLVED FIXED
Alias: None
Product: knights
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Miha Čančula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-15 20:38 UTC by Dave Kaye
Modified: 2016-04-03 08:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for bug 332194 (345 bytes, patch)
2014-03-17 23:41 UTC, Dave Kaye
Details
Test game for promotion (693 bytes, application/octet-stream)
2014-03-17 23:43 UTC, Dave Kaye
Details

Note You need to log in before you can comment on or make changes to this bug.
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