X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=parser.c;h=b2dfe88ca6b3b7e0c4f67a2e97241ebf46b00bd4;hb=681dfc03596526017b3b8f39caef7f8f7c032987;hp=0a6549ef1325264ffab2777c31e59e95b8dd019f;hpb=bf07cc0c5232c7cd486fab118defa0815ff89183;p=xboard.git diff --git a/parser.c b/parser.c index 0a6549e..b2dfe88 100644 --- a/parser.c +++ b/parser.c @@ -489,6 +489,10 @@ badMove:// we failed to find algebraic move *p = oldp; // we might need to re-match the skipped stuff } + if(Match("@@@@", p) || Match("--", p) || Match("Z0", p) || Match("pass", p) || Match("null", p)) { + strncpy(currentMoveString, "@@@@", 5); + return yyboardindex & F_WHITE_ON_MOVE ? WhiteDrop : BlackDrop; + } // ********* Efficient skipping of (mostly) alphabetic chatter ********** while(isdigit(**p) || isalpha(**p) || **p == '-') (*p)++;