From: H.G. Muller Date: Thu, 11 Jun 2009 04:22:36 +0000 (-0700) Subject: fixed forteitary wins for special game variations X-Git-Tag: v4.4.0.alpha6~17 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9a59d112f86f027b618d5ba51261a6773db56942;p=xboard.git fixed forteitary wins for special game variations feature that corrects forfeitary wins (e.g. on time) of a bare King to draws of course breaks proper operation in losers, suicide and giveaway --- diff --git a/backend.c b/backend.c index b2dad3b..e3f1cee 100644 --- a/backend.c +++ b/backend.c @@ -7832,7 +7832,9 @@ GameEnds(result, resultDetails, whosays) } /* [HGM] bare: don't allow bare King to win */ if((gameInfo.holdingsWidth == 0 || gameInfo.variant == VariantSuper || gameInfo.variant == VariantGreat) - && result != GameIsDrawn) + && gameInfo.variant != VariantLosers && gameInfo.variant != VariantGiveaway + && gameInfo.variant != VariantSuicide // [HGM] losers: except in losers, of course... + && result != GameIsDrawn) { int i, j, k=0, color = (result==WhiteWins ? (int)WhitePawn : (int)BlackPawn); for(j=BOARD_LEFT; j