summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost/mpchess
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/metapost/mpchess')
-rw-r--r--Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp2
-rw-r--r--Master/texmf-dist/metapost/mpchess/mpchess.mp26
2 files changed, 14 insertions, 14 deletions
diff --git a/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp b/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp
index 9953776640f..d156438506a 100644
--- a/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp
+++ b/Master/texmf-dist/metapost/mpchess/mpchess-chessboard.mp
@@ -242,7 +242,7 @@ vardef _queen_candidate(expr istart, jstart,iend,jend,wb)=
boolean output;
output = false;
if((iend<=_chessSize) and (iend>=1) and (iend<=_chessSize) and (iend>=1)):
- if((iend-istart) or (jend-jstart) or (abs(iend-istart)=abs(jend-jstart))):
+ if((iend=istart) or (jend=jstart) or (abs(iend-istart)=abs(jend-jstart))):
output:=true;
fi
fi
diff --git a/Master/texmf-dist/metapost/mpchess/mpchess.mp b/Master/texmf-dist/metapost/mpchess/mpchess.mp
index a900cd639ae..0fc53bdf594 100644
--- a/Master/texmf-dist/metapost/mpchess/mpchess.mp
+++ b/Master/texmf-dist/metapost/mpchess/mpchess.mp
@@ -2,7 +2,7 @@
%% mpchess.mp %%
%% draw chessboards with metapost %%
%% chupin@ceremade.dauphine.fr %%
-%% Version 0.4 (avril 2023) %%
+%% Version 0.5 (avril 2023) %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This work may be distributed and/or modified under the conditions of
@@ -238,20 +238,20 @@ def set_black_color(expr c)=
_blackColorSquare:=c;
enddef;
-_chess_bB:=_chess_cburnett_bB;
-_chess_bK:=_chess_cburnett_bK;
-_chess_bN:=_chess_cburnett_bN;
-_chess_bP:=_chess_cburnett_bP;
-_chess_bQ:=_chess_cburnett_bQ;
-_chess_bR:=_chess_cburnett_bR;
+_chess_bB:=_chess_mpchess_bB;
+_chess_bK:=_chess_mpchess_bK;
+_chess_bN:=_chess_mpchess_bN;
+_chess_bP:=_chess_mpchess_bP;
+_chess_bQ:=_chess_mpchess_bQ;
+_chess_bR:=_chess_mpchess_bR;
-_chess_wB:=_chess_cburnett_wB;
-_chess_wK:=_chess_cburnett_wK;
-_chess_wN:=_chess_cburnett_wN;
-_chess_wP:=_chess_cburnett_wP;
-_chess_wQ:=_chess_cburnett_wQ;
-_chess_wR:=_chess_cburnett_wR;
+_chess_wB:=_chess_mpchess_wB;
+_chess_wK:=_chess_mpchess_wK;
+_chess_wN:=_chess_mpchess_wN;
+_chess_wP:=_chess_mpchess_wP;
+_chess_wQ:=_chess_mpchess_wQ;
+_chess_wR:=_chess_mpchess_wR;
def set_pieces_theme(expr t)=
if(t="mpchess"):