mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
don't modify board listeners. Fixes problems, but may mean there's a
lot of work to do if I ever want to draw the boards I'm loading.
This commit is contained in:
parent
2c08baec68
commit
099b6a5158
1 changed files with 3 additions and 1 deletions
|
@ -183,6 +183,8 @@ model_setFromTextStream( ModelCtxt* model, XWStreamCtxt* stream )
|
|||
const DictionaryCtxt* dict = model_getDictionary( model );
|
||||
XP_U16 col, row;
|
||||
|
||||
model->vol.nTilesOnBoard = 0;
|
||||
|
||||
for ( row = 0; row < model->nRows; ++row ) {
|
||||
for ( col = 0; col < model->nCols; ++col ) {
|
||||
gchar ch = stream_getU8( stream );
|
||||
|
@ -200,7 +202,7 @@ model_setFromTextStream( ModelCtxt* model, XWStreamCtxt* stream )
|
|||
raw |= TILE_BLANK_BIT;
|
||||
}
|
||||
setModelTileRaw( model, col, row, raw );
|
||||
notifyBoardListeners( model, 0, col, row, XP_TRUE );
|
||||
// notifyBoardListeners( model, 0, col, row, XP_TRUE );
|
||||
++model->vol.nTilesOnBoard;
|
||||
/* Need to remove from pool too!!! */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue