Rev 41 | Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 41 | Rev 44 | ||
|---|---|---|---|
| Line 586... | Line 586... | ||
| 586 | if (the_board.viewed_move == the_board.move_count - 1) |
586 | if (the_board.viewed_move == the_board.move_count - 1) |
| 587 | { |
587 | { |
| 588 | // get a quick acccess to the last move |
588 | // get a quick acccess to the last move |
| 589 | last_move = &the_board.moves[the_board.move_count - 1]; |
589 | last_move = &the_board.moves[the_board.move_count - 1]; |
| 590 | 590 | ||
| 591 | // if the current player is a human AND its opponent is a |
591 | // if the current player is a human AND its opponent is a computer AND chess engine supports hinting, allow him to ask us for a hint |
| 592 | if ((current_player->type == PLAYER_HUMAN) && (opposite_player->type == PLAYER_COMPUTER)) |
592 | if ((current_player->type == PLAYER_HUMAN) && (opposite_player->type == PLAYER_COMPUTER) && (options.engine.program_options.command_hint[0] != 0)) |
| 593 | EnableMenuItem (GetMenu (hMainWnd), MENUID_CHESSBOARD_SUGGESTMOVE, MF_ENABLED); |
593 | EnableMenuItem (GetMenu (hMainWnd), MENUID_CHESSBOARD_SUGGESTMOVE, MF_ENABLED); |
| 594 | else |
594 | else |
| 595 | EnableMenuItem (GetMenu (hMainWnd), MENUID_CHESSBOARD_SUGGESTMOVE, MF_GRAYED); |
595 | EnableMenuItem (GetMenu (hMainWnd), MENUID_CHESSBOARD_SUGGESTMOVE, MF_GRAYED); |
| 596 | 596 | ||
| 597 | // (if the current player is a human |
597 | // (if the current player is a human |