]> git.sesse.net Git - remoteglot/commitdiff
Uppercase promotion choices correctly.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Nov 2014 20:10:51 +0000 (21:10 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Nov 2014 20:10:51 +0000 (21:10 +0100)
Board.pm

index f20cecfea2faf2cdf2ad357c16959bcb420bfd1c..a867c74162cefde898c6f25d3fd37442c02bc2c5 100644 (file)
--- a/Board.pm
+++ b/Board.pm
@@ -467,7 +467,7 @@ sub _prettyprint_move_no_check_or_mate {
                        if (defined($promo) && $promo ne '') {
                                # promotion
                                $pretty .= "=";
                        if (defined($promo) && $promo ne '') {
                                # promotion
                                $pretty .= "=";
-                               $pretty .= $promo;
+                               $pretty .= uc($promo);
                        }
                }
                return $pretty;
                        }
                }
                return $pretty;