From b8af3a6e790665eb1407fd9a8a3b396cde3599a4 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 20 Jul 2004 15:08:45 +0000 Subject: [PATCH] remove masking that was breaking blanks in Polish and I THINK was redundant. Add assert to make sure. --- xwords4/common/dictnry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/common/dictnry.c b/xwords4/common/dictnry.c index 08f02fd5c..4854ce13e 100644 --- a/xwords4/common/dictnry.c +++ b/xwords4/common/dictnry.c @@ -66,7 +66,10 @@ dict_getBlankTile( DictionaryCtxt* dict ) XP_U16 dict_getTileValue( DictionaryCtxt* dict, Tile tile ) { - tile &= TILE_VALUE_MASK; + if ( (tile & TILE_VALUE_MASK) != tile ) { + XP_ASSERT( tile == 32 && + tile == dict_getBlankTile( dict ) ); + } XP_ASSERT( tile < dict->nFaces ); tile *= 2; return dict->countsAndValues[tile+1];