From fd85bd35dad5ee146f5d52bd4e5eccb711a512bd Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 26 Oct 2010 20:56:41 -0700 Subject: [PATCH 1/2] set dictLang to 0 (unknown) when reading old-version stream --- xwords4/common/game.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xwords4/common/game.c b/xwords4/common/game.c index 77161c57a..9bcb8b642 100644 --- a/xwords4/common/game.c +++ b/xwords4/common/game.c @@ -439,9 +439,8 @@ gi_readFromStream( MPFORMAL XWStreamCtxt* stream, CurGameInfo* gi ) } gi->gameID = stream_getU16( stream ); - if ( strVersion >= STREAM_VERS_DICTLANG ) { - gi->dictLang = stream_getU8( stream ); - } + gi->dictLang = + strVersion >= STREAM_VERS_DICTLANG ? stream_getU8( stream ) : 0; if ( gi->timerEnabled || strVersion >= STREAM_VERS_GAMESECONDS ) { gi->gameSeconds = stream_getU16( stream ); } From b878599f7b9fae245b77dcf4bb6cc14c8bf6526d Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 26 Oct 2010 20:57:27 -0700 Subject: [PATCH 2/2] remove comment --- xwords4/common/model.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xwords4/common/model.c b/xwords4/common/model.c index 3b1d9adbb..4b87f24fd 100644 --- a/xwords4/common/model.c +++ b/xwords4/common/model.c @@ -488,7 +488,6 @@ undoFromMoveInfo( ModelCtxt* model, XP_U16 turn, Tile blankTile, MoveInfo* mi ) } model_addPlayerTile( model, turn, -1, tile ); } - XP_LOGF( "%s: %d tiles on board", __func__, model->vol.nTilesOnBoard ); adjustScoreForUndone( model, mi, turn ); } /* undoFromMoveInfo */