From 099b6a5158d679ef8f6230995d95607ba76fa937 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 18 Apr 2011 20:24:36 -0700 Subject: [PATCH] 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. --- xwords4/common/model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/common/model.c b/xwords4/common/model.c index e1c85902b..66f572974 100644 --- a/xwords4/common/model.c +++ b/xwords4/common/model.c @@ -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!!! */ }