Rev 171 | Rev 177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 171 | Rev 172 | ||
---|---|---|---|
Line 589... | Line 589... | ||
589 | chal.initial_time = (float) _wtoi (field_start); // read initial time |
589 | chal.initial_time = (float) _wtoi (field_start); // read initial time |
590 | REACH_NEXT_FIELD_ELSE (field_start, return); |
590 | REACH_NEXT_FIELD_ELSE (field_start, return); |
591 | chal.increment = (float) _wtoi (field_start); // read increment |
591 | chal.increment = (float) _wtoi (field_start); // read increment |
592 | 592 | ||
593 | // is this variant unsupported ? |
593 | // is this variant unsupported ? |
594 | if ((_wcsicmp (chal.game_type, L" |
594 | if ((_wcsicmp (chal.game_type, L"untimed") != 0) && (_wcsicmp (chal.game_type, L"standard") != 0) |
595 | && (_wcsicmp (chal.game_type, L" |
595 | && (_wcsicmp (chal.game_type, L"blitz") != 0) && (_wcsicmp (chal.game_type, L"lightning") != 0) |
- | 596 | /* && (_wcsicmp (chal.game_type, L"losers") != 0) && (_wcsicmp (chal.game_type, L"atomic") != 0)*/) |
|
596 | Player_SendBuffer_Add (player, 1000, L"decline %s\n", chal.challenger); // automatically decline all unsupported games |
597 | Player_SendBuffer_Add (player, 1000, L"decline %s\n", chal.challenger); // automatically decline all unsupported games |
597 | else |
598 | else |
598 | { |
599 | { |
599 | // supported variant. Display a message box for the user to choose whether to accept or decline. |
600 | // supported variant. Display a message box for the user to choose whether to accept or decline. |
600 | 601 | ||
Line 642... | Line 643... | ||
642 | // send a notification to this player's chat window |
643 | // send a notification to this player's chat window |
643 | interlocutor = Interlocutor_FindOrCreate (nickname); |
644 | interlocutor = Interlocutor_FindOrCreate (nickname); |
644 | Interlocutor_Notify (interlocutor, LOCALIZE (L"Chat_InvitationAcceptedByOther"), nickname); |
645 | Interlocutor_Notify (interlocutor, LOCALIZE (L"Chat_InvitationAcceptedByOther"), nickname); |
645 | if (IsWindow (interlocutor->hWnd)) |
646 | if (IsWindow (interlocutor->hWnd)) |
646 | ShowWindow (interlocutor->hWnd, SW_MINIMIZE); // minimize chat window immediately |
647 | ShowWindow (interlocutor->hWnd, SW_MINIMIZE); // minimize chat window immediately |
- | 648 | ||
- | 649 | // remember the game rules |
|
- | 650 | wcscpy_s (the_board.game_rules, WCHAR_SIZEOF (the_board.game_rules), L"standard"); // TODO: support other game rules |
|
647 | 651 | ||
648 | return; // finished evaluating this challenge reply notification |
652 | return; // finished evaluating this challenge reply notification |
649 | } |
653 | } |
650 | 654 | ||
651 | 655 |