From 270e38d9a4977cd9348d56d54e42ac3916bec744 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 12 Jan 2020 22:07:46 +0100 Subject: [PATCH] Fix Betza notation for pawn drops --- src/ucioption.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ucioption.cpp b/src/ucioption.cpp index c5e119a..2f354e1 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -90,7 +90,7 @@ void on_variant_change(const Option &o) { suffix += "f"; else if (pt == BISHOP && v->dropOppositeColoredBishop) suffix += "s"; - suffix += "@" + std::to_string(pt == PAWN ? v->promotionRank : v->maxRank + 1); + suffix += "@" + std::to_string(pt == PAWN && !v->promotionZonePawnDrops ? v->promotionRank : v->maxRank + 1); } sync_cout << "piece " << v->pieceToChar[pt] << "& " << pieceMap.find(pt)->second->betza << suffix << sync_endl; PieceType promType = v->promotedPieceType[pt]; -- 1.7.0.4