Remove stray else
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 17 Jun 2011 19:19:41 +0000 (21:19 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Fri, 17 Jun 2011 19:19:41 +0000 (21:19 +0200)
Due to an erroneous else, the window parameters of Move History were
not retreived (and thus incorrectly saved) when the Engine Output was up.

xboard.c

index 8198376..f95e96e 100644 (file)
--- 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);
 { // 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);
   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);
                         (XtPointer) dialog);
       XawDialogAddButton(dialog, _("Captain"), PromotionCallback,
                         (XtPointer) dialog);
-    } else {\r
+    } else {
     XawDialogAddButton(dialog, _("Queen"), PromotionCallback,
                       (XtPointer) dialog);
     XawDialogAddButton(dialog, _("Rook"), PromotionCallback,
     XawDialogAddButton(dialog, _("Queen"), PromotionCallback,
                       (XtPointer) dialog);
     XawDialogAddButton(dialog, _("Rook"), PromotionCallback,
@@ -5133,7 +5133,7 @@ void PromotionPopUp()
                       (XtPointer) dialog);
     }
     if (!appData.testLegality || gameInfo.variant == VariantSuicide ||
                       (XtPointer) dialog);
     }
     if (!appData.testLegality || gameInfo.variant == VariantSuicide ||
-        gameInfo.variant == VariantSpartan && !WhiteOnMove(currentMove) ||\r
+        gameInfo.variant == VariantSpartan && !WhiteOnMove(currentMove) ||
         gameInfo.variant == VariantGiveaway) {
       XawDialogAddButton(dialog, _("King"), PromotionCallback,
                         (XtPointer) dialog);
         gameInfo.variant == VariantGiveaway) {
       XawDialogAddButton(dialog, _("King"), PromotionCallback,
                         (XtPointer) dialog);
@@ -5945,7 +5945,7 @@ void MatchProc(w, event, prms, nprms)
      String *prms;
      Cardinal *nprms;
 {
      String *prms;
      Cardinal *nprms;
 {
-    MatchEvent(2);\r
+    MatchEvent(2);
 }
 
 void IcsClientProc(w, event, prms, nprms)
 }
 
 void IcsClientProc(w, event, prms, nprms)