added forceIllegalMove to xboard
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 9 Oct 2009 03:28:50 +0000 (20:28 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 9 Oct 2009 03:28:50 +0000 (20:28 -0700)
xboard.c

index e8b561d..ee2ba94 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -1404,6 +1404,9 @@ XtResource clientResources[] = {
     { "keepAlive", "keepAlive", XtRInt,
        sizeof(int), XtOffset(AppDataPtr, keepAlive),
        XtRImmediate, (XtPointer) 0},
+    { "forceIllegalMoves", "forceIllegalMoves", XtRBoolean,
+       sizeof(Boolean), XtOffset(AppDataPtr, forceIllegal),
+       XtRImmediate, (XtPointer) False},
 };
 
 XrmOptionDescRec shellOptions[] = {
@@ -1772,6 +1775,7 @@ XrmOptionDescRec shellOptions[] = {
     { "-firstNeedsNoncompliantFEN", "firstNeedsNoncompliantFEN", XrmoptionSepArg, NULL },
     { "-secondNeedsNoncompliantFEN", "secondNeedsNoncompliantFEN", XrmoptionSepArg, NULL },
     { "-keepAlive", "keepAlive", XrmoptionSepArg, NULL },
+    { "-forceIllegalMoves", "forceIllegalMoves", XrmoptionNoArg, "True" },
 };