Make yyskipmoves also suppress examining of drop moves
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 19 Nov 2010 17:28:19 +0000 (18:28 +0100)
committerArun Persaud <arun@nubati.net>
Sun, 21 Nov 2010 00:07:44 +0000 (16:07 -0800)
Not sure if this does any good, but it seemed illogical that this would
happen in all other moves, but not drops.

parser.l

index 48b94ff..88567ef 100644 (file)
--- a/parser.l
+++ b/parser.l
@@ -823,6 +823,9 @@ extern void CopyBoard P((Board to, Board from));
 }
 
 [A-Za-z][@*][a-l][0-9] {
+
+    if (yyskipmoves) return (int) AmbiguousMove; /* not disambiguated */
+
     /* Bughouse piece drop. */
     currentMoveString[1] = '@';
     currentMoveString[2] = yytext[2];