fen.c: CGI mode, add dutch mode parameter, will also set piece mapping - chess-puzzles - chess puzzle book generator
(HTM) git clone git://git.codemadness.org/chess-puzzles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2037128c8c5a1527bddad29041660177a1cee999
(DIR) parent 5f6b743ef448f1d096d01ffafe4d112e47768a2f
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 8 Jan 2024 21:36:15 +0100
fen.c: CGI mode, add dutch mode parameter, will also set piece mapping
Diffstat:
M fen.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/fen.c b/fen.c
@@ -1523,7 +1523,10 @@ cgi_mode(void)
board.flipboard = *p == '1' ? 1 : 0;
if ((p = getparam(query, "coords")) && (*p == '0' || *p == '1'))
board.showcoords = *p == '1' ? 1 : 0;
-
+ if ((p = getparam(query, "dutch")) && *p == '1') {
+ dutchmode = *p == '1' ? 1 : 0;
+ pgn_piecemapping = "KDTLP";
+ }
if ((p = getparam(query, "output"))) {
if (decodeparam(buf, sizeof(buf), p) == -1)
goto badrequest;