fen.c: CGI mode, add dutch mode parameter, will also set piece mapping - chess-… | |
git clone git://git.codemadness.org/chess-puzzles | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 2037128c8c5a1527bddad29041660177a1cee999 | |
parent 5f6b743ef448f1d096d01ffafe4d112e47768a2f | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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; |