projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement sweep selection of promotion piece
[xboard.git]
/
xboard.c
diff --git
a/xboard.c
b/xboard.c
index
079d42b
..
1fbf561
100644
(file)
--- a/
xboard.c
+++ b/
xboard.c
@@
-4766,6
+4766,8
@@
void HandleUserMove(w, event, prms, nprms)
void AnimateUserMove (Widget w, XEvent * event,
String * params, Cardinal * nParams)
{
void AnimateUserMove (Widget w, XEvent * event,
String * params, Cardinal * nParams)
{
+ extern ChessSquare promoSweep;
+ if(promoSweep != EmptySquare && appData.sweepSelect) PromoScroll(event->xmotion.x, event->xmotion.y); else
DragPieceMove(event->xmotion.x, event->xmotion.y);
}
DragPieceMove(event->xmotion.x, event->xmotion.y);
}