From: H.G. Muller Date: Fri, 17 Jun 2011 19:19:41 +0000 (+0200) Subject: Remove stray else X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=82c76bd978d29f9ec59ccf37df741936e71f278b;p=xboard.git Remove stray else Due to an erroneous else, the window parameters of Move History were not retreived (and thus incorrectly saved) when the Engine Output was up. --- diff --git a/xboard.c b/xboard.c index 8198376..f95e96e 100644 --- a/xboard.c +++ b/xboard.c @@ -1588,7 +1588,7 @@ GetWindowCoords() { // wrapper to shield use of window handles from back-end (make addressible by number?) // In XBoard this will have to wait until awareness of window parameters is implemented GetActualPlacement(shellWidget, &wpMain); - if(EngineOutputIsUp()) GetActualPlacement(engineOutputShell, &wpEngineOutput); else + if(EngineOutputIsUp()) GetActualPlacement(engineOutputShell, &wpEngineOutput); if(MoveHistoryIsUp()) GetActualPlacement(historyShell, &wpMoveHistory); if(EvalGraphIsUp()) GetActualPlacement(evalGraphShell, &wpEvalGraph); if(GameListIsUp()) GetActualPlacement(gameListShell, &wpGameList); @@ -5122,7 +5122,7 @@ void PromotionPopUp() (XtPointer) dialog); XawDialogAddButton(dialog, _("Captain"), PromotionCallback, (XtPointer) dialog); - } else { + } else { XawDialogAddButton(dialog, _("Queen"), PromotionCallback, (XtPointer) dialog); XawDialogAddButton(dialog, _("Rook"), PromotionCallback, @@ -5133,7 +5133,7 @@ void PromotionPopUp() (XtPointer) dialog); } if (!appData.testLegality || gameInfo.variant == VariantSuicide || - gameInfo.variant == VariantSpartan && !WhiteOnMove(currentMove) || + gameInfo.variant == VariantSpartan && !WhiteOnMove(currentMove) || gameInfo.variant == VariantGiveaway) { XawDialogAddButton(dialog, _("King"), PromotionCallback, (XtPointer) dialog); @@ -5945,7 +5945,7 @@ void MatchProc(w, event, prms, nprms) String *prms; Cardinal *nprms; { - MatchEvent(2); + MatchEvent(2); } void IcsClientProc(w, event, prms, nprms)