Rev 185 | Rev 192 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 185 | Rev 186 | ||
---|---|---|---|
Line 160... | Line 160... | ||
160 | opposite_player = Player_GetOpposite (); |
160 | opposite_player = Player_GetOpposite (); |
161 | 161 | ||
162 | // is the game still alive AND has the engine just died ? |
162 | // is the game still alive AND has the engine just died ? |
163 | if ((the_board.game_state == STATE_PLAYING) && !pipe_isalive (fpipe, &exit_code)) |
163 | if ((the_board.game_state == STATE_PLAYING) && !pipe_isalive (fpipe, &exit_code)) |
164 | { |
164 | { |
165 | Debug_Log (L"===Unrecoverable engine error (engine disappeared unexpectedly with exit code %lld): |
165 | Debug_Log (L"===Unrecoverable engine error (engine disappeared unexpectedly with exit code %lld [0x%08x]): opponent wins!===\n", exit_code, exit_code); |
166 | dont_nag = true; // remember NOT to nag the user if he experienced any bug |
166 | dont_nag = true; // remember NOT to nag the user if he experienced any bug |
167 | 167 | ||
168 | // if opponent player is human, play the victory sound, else, play defeat sound at the center of the board |
168 | // if opponent player is human, play the victory sound, else, play defeat sound at the center of the board |
169 | Audio_PlaySoundAtCenter (opposite_player->type == PLAYER_HUMAN ? SOUNDTYPE_VICTORY : SOUNDTYPE_DEFEAT); |
169 | Audio_PlaySoundAtCenter (opposite_player->type == PLAYER_HUMAN ? SOUNDTYPE_VICTORY : SOUNDTYPE_DEFEAT); |
170 | 170 |