mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
always set nTilesMax so works when XWFEATURE_SEARCHLIMIT not defined
This commit is contained in:
parent
91d9e9b65b
commit
d69662558c
1 changed files with 3 additions and 2 deletions
|
@ -380,6 +380,7 @@ engine_findMove( EngineCtxt* engine, ModelCtxt* model,
|
||||||
XP_Bool firstMove;
|
XP_Bool firstMove;
|
||||||
XP_U16 star_row;
|
XP_U16 star_row;
|
||||||
|
|
||||||
|
engine->nTilesMax = MAX_TRAY_TILES;
|
||||||
#ifdef XWFEATURE_SEARCHLIMIT
|
#ifdef XWFEATURE_SEARCHLIMIT
|
||||||
if ( useTileLimits ) {
|
if ( useTileLimits ) {
|
||||||
/* We'll want to use the numbers we've been using already unless
|
/* 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;
|
engine->nTilesMax = engine->nTilesMaxUser;
|
||||||
} else {
|
} else {
|
||||||
engine->nTilesMin = 1;
|
engine->nTilesMin = 1;
|
||||||
engine->nTilesMax = MAX_TRAY_TILES;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -925,7 +925,8 @@ extendRight( EngineCtxt* engine, Tile* tiles, XP_U16 tileLength,
|
||||||
tiles[tileLength] = tile;
|
tiles[tileLength] = tile;
|
||||||
extendRight( engine, tiles, tileLength+1,
|
extendRight( engine, tiles, tileLength+1,
|
||||||
edge_from_tile( dict, edge, tile ),
|
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 );
|
rack_replace( engine, tile, isBlank );
|
||||||
if ( engine->returnNOW ) {
|
if ( engine->returnNOW ) {
|
||||||
goto no_check;
|
goto no_check;
|
||||||
|
|
Loading…
Add table
Reference in a new issue