fixed always promoteing to one color
This commit is contained in:
parent
1d7d15fb52
commit
33592762a7
1 changed files with 3 additions and 1 deletions
4
main.c
4
main.c
|
|
@ -178,7 +178,9 @@ void playMoves(game *g, char *moves) {
|
|||
if (tmp)
|
||||
*tmp &= (~bit);
|
||||
if (strlen(move) == 5) {
|
||||
set = charToSet(g, move[4]);
|
||||
char c = move[4];
|
||||
c = toupper(c);
|
||||
set = charToSet(g, c);
|
||||
}
|
||||
*set |= bit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue