Subversion Repositories Games.Chess Giants

Rev

Rev 130 | Rev 140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 130 Rev 136
Line 530... Line 530...
530
 
530
 
531
         // rewind game 2 moves back
531
         // rewind game 2 moves back
532
         the_board.moves = (boardmove_t *) SAFE_realloc (the_board.moves, the_board.move_count, max (1, the_board.move_count - 2), sizeof (boardmove_t), false);
532
         the_board.moves = (boardmove_t *) SAFE_realloc (the_board.moves, the_board.move_count, max (1, the_board.move_count - 2), sizeof (boardmove_t), false);
533
         the_board.move_count = max (1, the_board.move_count - 2); // figure out how many moves we have now
533
         the_board.move_count = max (1, the_board.move_count - 2); // figure out how many moves we have now
534
         the_board.viewed_move = the_board.move_count - 1; // take us back to the last move
534
         the_board.viewed_move = the_board.move_count - 1; // take us back to the last move
-
 
535
         the_board.game_state = STATE_PLAYING; // remember the game is now playing (in case we wanted to cancel the closing move of a finished game, this opens the game again)
535
 
536
 
536
         // just set up the board from its Forsyth-Edwards notation
537
         // just set up the board from its Forsyth-Edwards notation
537
         Debug_Log (L"===setting up board using FEN string===\n");
538
         Debug_Log (L"===setting up board using FEN string===\n");
538
 
539
 
539
         // instruct it about its allowed search depth BEFORE each table set (this ensures engine will be "ready" to handle the command)
540
         // instruct it about its allowed search depth BEFORE each table set (this ensures engine will be "ready" to handle the command)