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:
Eric House 2011-04-18 20:24:36 -07:00
parent 2c08baec68
commit 099b6a5158

View file

@ -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!!! */
}