Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 171 | Rev 177 | ||
|---|---|---|---|
| Line 377... | Line 377... | ||
| 377 | if (player->should_wakeup) |
377 | if (player->should_wakeup) |
| 378 | { |
378 | { |
| 379 | // has at least one move been played AND is it the remote player's turn now ? |
379 | // has at least one move been played AND is it the remote player's turn now ? |
| 380 | if ((the_board.move_count > 1) && (Board_ColorToMove (&the_board) == player->color)) |
380 | if ((the_board.move_count > 1) && (Board_ColorToMove (&the_board) == player->color)) |
| 381 | { |
381 | { |
| 382 |
|
382 | Debug_LogMove (&the_board.moves[the_board.move_count - 1], L"===Local player just played, sending the chosen move to chess server===\n"); |
| 383 | Player_SendBuffer_Add (player, 1000, L"%s\n", the_board.moves[the_board.move_count - 1].pgntext); // send the move string to the chess server |
383 | Player_SendBuffer_Add (player, 1000, L"%s\n", the_board.moves[the_board.move_count - 1].pgntext); // send the move string to the chess server |
| 384 | } |
384 | } |
| 385 | player->should_wakeup = false; // remember we took this notification into account |
385 | player->should_wakeup = false; // remember we took this notification into account |
| 386 | } |
386 | } |
| 387 | 387 | ||