summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/gnuchess.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.c')
-rw-r--r--apps/plugins/chessbox/gnuchess.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/chessbox/gnuchess.c b/apps/plugins/chessbox/gnuchess.c
index 4b21cd785c..ff9bb99b91 100644
--- a/apps/plugins/chessbox/gnuchess.c
+++ b/apps/plugins/chessbox/gnuchess.c
@@ -1117,6 +1117,10 @@ static short i,alpha,beta,score,tempb,tempc,tempsf,tempst,xside,rpt;
for (index=0;index<5;index++){
move_buffer[index] = mvstr1[index];
}
+ if (SqAtakd(PieceList[(side==white)?black:white][0],side)){
+ move_buffer[4] = '+';
+ move_buffer[5] = '\0';
+ }
if (score == -9999 || score == 9998) mate = true;
if (mate) hint = 0;