Rev 1 | Rev 140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 136 | ||
---|---|---|---|
Line 381... | Line 381... | ||
381 | local_player = Player_FindByType (PLAYER_HUMAN); // get a pointer to the local player |
381 | local_player = Player_FindByType (PLAYER_HUMAN); // get a pointer to the local player |
382 | if ((local_player != NULL) && local_player->wants_cancel) |
382 | if ((local_player != NULL) && local_player->wants_cancel) |
383 | { |
383 | { |
384 | Player_SendBuffer_Add (player, 1000, L"takeback\n"); // send the takeback request to our opponent |
384 | Player_SendBuffer_Add (player, 1000, L"takeback\n"); // send the takeback request to our opponent |
385 | Interlocutor_Notify (Interlocutor_FindOrCreate (player->name), LOCALIZE (L"Chat_TakebackRequestSent"), player->name); // send a notification to its chat window |
385 | Interlocutor_Notify (Interlocutor_FindOrCreate (player->name), LOCALIZE (L"Chat_TakebackRequestSent"), player->name); // send a notification to its chat window |
- | 386 | 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) |
|
386 | local_player->wants_cancel = false; // don't do this all day long |
387 | local_player->wants_cancel = false; // don't do this all day long |
387 | } |
388 | } |
388 | if (player->wants_cancel) |
389 | if (player->wants_cancel) |
389 | { |
390 | { |
390 | Player_SendBuffer_Add (player, 1000, L"takeback\n"); // send the takeback request to our opponent |
391 | Player_SendBuffer_Add (player, 1000, L"takeback\n"); // send the takeback request to our opponent |
391 | Interlocutor_Notify (Interlocutor_FindOrCreate (player->name), LOCALIZE (L"Chat_TakebackRequestSent"), player->name); // send a notification to its chat window |
392 | Interlocutor_Notify (Interlocutor_FindOrCreate (player->name), LOCALIZE (L"Chat_TakebackRequestSent"), player->name); // send a notification to its chat window |
- | 393 | 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) |
|
392 | player->wants_cancel = false; // don't do this all day long |
394 | player->wants_cancel = false; // don't do this all day long |
393 | } |
395 | } |
394 | 396 | ||
395 | // if we have something to send, do it |
397 | // if we have something to send, do it |
396 | if (!player->sendbuffer_locked && (player->sendbuffer[0] != 0) && (animation_endtime + 1.0f < current_time)) |
398 | if (!player->sendbuffer_locked && (player->sendbuffer[0] != 0) && (animation_endtime + 1.0f < current_time)) |