mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Merge remote branch 'origin/android_branch' into android_branch
This commit is contained in:
commit
6691c0713c
3 changed files with 13 additions and 15 deletions
|
@ -700,15 +700,11 @@ setModelTileRaw( ModelCtxt* model, XP_U16 col, XP_U16 row, CellTile tile )
|
|||
static CellTile
|
||||
getModelTileRaw( const ModelCtxt* model, XP_U16 col, XP_U16 row )
|
||||
{
|
||||
CellTile tile;
|
||||
XP_U16 nCols = model->nCols;
|
||||
XP_ASSERT( model->nRows == nCols );
|
||||
if ( col < nCols && row < nCols ) {
|
||||
tile = model->vol.tiles[(row*nCols) + col];
|
||||
} else {
|
||||
tile = TILE_EMPTY_BIT;
|
||||
}
|
||||
return tile;
|
||||
XP_ASSERT( col < nCols );
|
||||
XP_ASSERT( row < nCols );
|
||||
return model->vol.tiles[(row*nCols) + col];
|
||||
} /* getModelTileRaw */
|
||||
|
||||
static void
|
||||
|
|
|
@ -318,10 +318,11 @@ static XP_Bool
|
|||
modelIsEmptyAt( const ModelCtxt* model, XP_U16 col, XP_U16 row )
|
||||
{
|
||||
Tile tile;
|
||||
XP_Bool found;
|
||||
|
||||
found = model_getTile( model, col, row, XP_FALSE, -1, &tile,
|
||||
NULL, NULL, NULL );
|
||||
XP_U16 nCols = model_numCols( model );
|
||||
XP_Bool found = col < nCols
|
||||
&& row < nCols
|
||||
&& model_getTile( model, col, row, XP_FALSE, -1, &tile,
|
||||
NULL, NULL, NULL );
|
||||
return !found;
|
||||
} /* modelIsEmptyAt */
|
||||
|
||||
|
@ -722,11 +723,12 @@ find_end( const ModelCtxt* model, XP_U16 col, XP_U16 row,
|
|||
XP_Bool isHorizontal )
|
||||
{
|
||||
XP_U16* incr = isHorizontal? &col: &row;
|
||||
XP_U16 limit = isHorizontal? MAX_COLS-1:MAX_ROWS-1;
|
||||
XP_U16 nCols = model_numCols( model );
|
||||
XP_U16 limit = nCols - 1;
|
||||
XP_U16 lastGood = *incr;
|
||||
|
||||
XP_ASSERT( col < MAX_COLS );
|
||||
XP_ASSERT( row < MAX_ROWS );
|
||||
XP_ASSERT( col < nCols );
|
||||
XP_ASSERT( row < nCols );
|
||||
|
||||
for ( ; ; ) {
|
||||
XP_ASSERT( *incr <= limit );
|
||||
|
|
|
@ -19,7 +19,7 @@ USE_GTK=""
|
|||
ALL_VIA_RQ=${ALL_VIA_RQ:-FALSE}
|
||||
SEED=""
|
||||
BOARD_SIZES_OLD=(15)
|
||||
BOARD_SIZES_NEW=(15 17)
|
||||
BOARD_SIZES_NEW=(15)
|
||||
NAMES=(UNUSED Brynn Ariela Kati Eric)
|
||||
[ -n "$SEED" ] && RANDOM=$SEED
|
||||
|
||||
|
|
Loading…
Reference in a new issue