mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
a bit of cleanup
This commit is contained in:
parent
6e9f5791d6
commit
ce2420840d
1 changed files with 8 additions and 7 deletions
|
@ -431,7 +431,7 @@ engine_findMove( EngineCtxt* engine, const ModelCtxt* model,
|
|||
|
||||
if ( 0 ) {
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
} else if ( !!engine->searchLimits ) {
|
||||
} else if ( !!searchLimits ) {
|
||||
if ( engine->searchHorizontal ) {
|
||||
firstRowToFill = searchLimits->top;
|
||||
engine->lastRowToFill = searchLimits->bottom;
|
||||
|
@ -458,7 +458,7 @@ engine_findMove( EngineCtxt* engine, const ModelCtxt* model,
|
|||
}
|
||||
|
||||
if ( !engine->searchHorizontal ||
|
||||
(engine->isFirstMove && !engine->searchLimits) ) {
|
||||
(engine->isFirstMove && !searchLimits) ) {
|
||||
engine->searchInProgress = XP_FALSE;
|
||||
break;
|
||||
} else {
|
||||
|
@ -499,16 +499,17 @@ findMovesOneRow( EngineCtxt* engine )
|
|||
XP_U16 col, row = engine->curRow;
|
||||
XP_S16 prevAnchor;
|
||||
XP_U16 firstSearchCol, lastSearchCol;
|
||||
const BdHintLimits* searchLimits = engine->searchLimits;
|
||||
|
||||
if ( 0 ) {
|
||||
#ifdef XWFEATURE_SEARCHLIMIT
|
||||
} else if ( !!engine->searchLimits ) {
|
||||
} else if ( !!searchLimits ) {
|
||||
if ( engine->searchHorizontal ) {
|
||||
firstSearchCol = engine->searchLimits->left;
|
||||
lastSearchCol = engine->searchLimits->right;
|
||||
firstSearchCol = searchLimits->left;
|
||||
lastSearchCol = searchLimits->right;
|
||||
} else {
|
||||
firstSearchCol = engine->searchLimits->top;
|
||||
lastSearchCol = engine->searchLimits->bottom;
|
||||
firstSearchCol = searchLimits->top;
|
||||
lastSearchCol = searchLimits->bottom;
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue