Subversion Repositories Games.Chess Giants

Rev

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

Rev 177 Rev 178
Line 52... Line 52...
52
   Move_DescribeInFEN (currentmove);
52
   Move_DescribeInFEN (currentmove);
53
 
53
 
54
   // forget the hovered and selected positions
54
   // forget the hovered and selected positions
55
   Board_SetSelectedAndHovered (&the_board, -1, -1, -1, -1);
55
   Board_SetSelectedAndHovered (&the_board, -1, -1, -1, -1);
56
 
56
 
-
 
57
   // pawn promotions are a special case. When the dialog is displayed, the move has ALREADY been done. So we must
-
 
58
   // not warn the OPPOSITE player of the current move, but the CURRENT player of the current move.
57
   opposite_player = Player_GetOpposite ();
59
   opposite_player = Player_GetCurrent ();
58
   opposite_player->should_wakeup = true; // tell the opposite player to wake up
60
   opposite_player->should_wakeup = true; // tell the opposite player to wake up
59
 
61
 
60
   the_board.reevaluate = true; // evaluate the new board
62
   the_board.reevaluate = true; // evaluate the new board
61
   the_scene.update = true; // and redraw the scene
63
   the_scene.update = true; // and redraw the scene
62
 
64