diff options
Diffstat (limited to 'src/testsearch.c')
| -rw-r--r-- | src/testsearch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testsearch.c b/src/testsearch.c index 4290a4f..380dfba 100644 --- a/src/testsearch.c +++ b/src/testsearch.c @@ -42,7 +42,7 @@ TestSearch(void) SEARCHER_THREAD_CONTEXT *ctx; POSITION pos; ULONG u; - FLAG fOver; + GAME_RESULT result; FLAG fPost = g_Options.fShouldPost; FLAG fRet = FALSE; @@ -79,7 +79,7 @@ TestSearch(void) #if (PERF_COUNTERS && MP) ClearHelperThreadIdleness(); #endif - fOver = Iterate(ctx); + result = Iterate(ctx); // // How long did that take? @@ -94,7 +94,7 @@ TestSearch(void) // // Did we get a sane move? // - if (GAME_NOT_OVER == fOver) + if (RESULT_IN_PROGRESS == result.eResult) { if (FALSE == SanityCheckMove(&pos, ctx->mvRootMove)) { @@ -104,11 +104,11 @@ TestSearch(void) } } #ifdef DEBUG - else if (GAME_WHITE_WON == fOver) + else if (RESULT_WHITE_WON == result.eResult) { ASSERT(InCheck(&pos, BLACK)); } - else if (GAME_BLACK_WON == fOver) + else if (RESULT_BLACK_WON == result.eResult) { ASSERT(InCheck(&pos, WHITE)); } |
