From d69662558c3c6f85a818a5f4dede7f03b8bdc541 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 11 Dec 2004 04:16:48 +0000 Subject: [PATCH] always set nTilesMax so works when XWFEATURE_SEARCHLIMIT not defined --- common/engine.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/engine.c b/common/engine.c index 7ccebe68d..877088b1d 100644 --- a/common/engine.c +++ b/common/engine.c @@ -380,6 +380,7 @@ engine_findMove( EngineCtxt* engine, ModelCtxt* model, XP_Bool firstMove; XP_U16 star_row; + engine->nTilesMax = MAX_TRAY_TILES; #ifdef XWFEATURE_SEARCHLIMIT if ( useTileLimits ) { /* We'll want to use the numbers we've been using already unless @@ -405,7 +406,6 @@ engine_findMove( EngineCtxt* engine, ModelCtxt* model, engine->nTilesMax = engine->nTilesMaxUser; } else { engine->nTilesMin = 1; - engine->nTilesMax = MAX_TRAY_TILES; } #endif @@ -925,7 +925,8 @@ extendRight( EngineCtxt* engine, Tile* tiles, XP_U16 tileLength, tiles[tileLength] = tile; extendRight( engine, tiles, tileLength+1, edge_from_tile( dict, edge, tile ), - ISACCEPTING( dict, edge ), firstCol, col+1, row ); + ISACCEPTING( dict, edge ), firstCol, + col+1, row ); rack_replace( engine, tile, isBlank ); if ( engine->returnNOW ) { goto no_check;