On invalid piece name, the code was anyway destroying any piece in the
target location, and the whole logic was diluted.
* XShogi is no longer included in the GNU Shogi source, it is
available as a separate source archive.
+* Fix clobbering of board on invalid input when editing board.
* Fixed Curses mode display:
- reversed column number for MiniShogi
- clock position for MiniShogi
continue;
sq = locn(r, c);
- color[sq] = a;
- board[sq] = no_piece;
for (i = NO_PIECES; i > no_piece; i--)
{
if ((s[0] == pxx[i]) || (s[0] == qxx[i]))
{
+ color[sq] = a;
if (s[3] == '+')
board[sq] = promoted[i];
else
}
}
-
- if (found == 0)
- color[sq] = neutral;
-
DrawPiece(sq);
}
}
sq = locn(r, c);
- color[sq] = a;
- board[sq] = no_piece;
for (i = no_piece; i <= king; i++)
{
if ((s[0] == pxx[i]) || (s[0] == qxx[i]))
{
+ color[sq] = a;
if (s[3] == '+')
board[sq] = promoted[i];
else
break;
}
}
-
- if (found == 0)
- color[sq] = neutral;
}
for (sq = 0; sq < NO_SQUARES; sq++)