Introduction
Introduction Statistics Contact Development Disclaimer Help
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;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.