]> git.sesse.net Git - remoteglot/blobdiff - Board.pm
Put a one-move PV on even the not-found hash probe entries, so they are selectable.
[remoteglot] / Board.pm
index 2950e359c57b4a8fa7ac8632a24a2a730417488a..3e0fd33a52b4fa72a4264a4eff58962dc93cc197 100644 (file)
--- a/Board.pm
+++ b/Board.pm
@@ -541,12 +541,12 @@ sub _prettyprint_move_no_check_or_mate {
                        $pretty = substr($move, 0, 1) . 'x' . _pos_to_square($to_row, $to_col);
                } else {
                        $pretty = _pos_to_square($to_row, $to_col);
                        $pretty = substr($move, 0, 1) . 'x' . _pos_to_square($to_row, $to_col);
                } else {
                        $pretty = _pos_to_square($to_row, $to_col);
+               }
 
 
-                       if (defined($promo) && $promo ne '') {
-                               # promotion
-                               $pretty .= "=";
-                               $pretty .= uc($promo);
-                       }
+               if (defined($promo) && $promo ne '') {
+                       # promotion
+                       $pretty .= "=";
+                       $pretty .= uc($promo);
                }
                return $pretty;
        }
                }
                return $pretty;
        }