1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Author: Jotam Jr. Trejo <jotamjr@debian.org.sv>
Description: Initialize type_to_char table to only upper-case characters,
this to comply the xboard version 2 protocol, related to
SAN notation.
Closes: 539718.
--- a/utils.c
+++ b/utils.c
@@ -313,7 +313,7 @@
int prom, from, target, f_rank, t_rank, converter;
char f_file, t_file;
- char type_to_char[] = { 'F', 'P', 'p', 'N', 'n', 'K', 'k', 'R', 'r', 'Q', 'q', 'B', 'b', 'E' };
+ char type_to_char[] = { 'F', 'P', 'P', 'N', 'N', 'K', 'K', 'R', 'R', 'Q', 'Q', 'B', 'B', 'E' };
prom = move.promoted;
from = move.from;
|