Skip to content

Commit

Permalink
Fixed game history when editing board
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericojordan committed Jul 6, 2017
1 parent 2f2a90d commit e538b29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fast-chess-gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,10 @@ void handleEvent(SDL_Event event, Game * game, char * color, BOOL * hasAI, int *
*editing = *editing?FALSE:TRUE;
if (*editing) {
*lastMove = 0;
*hasAI = FALSE;
} else {
char fen[MAX_FEN_LEN];
toFen(fen, &(game->position));
getFenGame(game, fen);
}
printf("Editing %s.\n", *editing?"enabled":"disabled");
fflush(stdout);
Expand Down

0 comments on commit e538b29

Please sign in to comment.