From d2cb36029bdb1a7af3ee9fe81db826be71d0f62c Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 9 Sep 2008 12:20:09 +0000 Subject: [PATCH] Had to comment out BLANKS_FIRST to compile new wince font code, so assert that blank test catches only one tile per dict. --- xwords4/common/dictnry.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xwords4/common/dictnry.c b/xwords4/common/dictnry.c index 90a11b466..f2f76d72e 100644 --- a/xwords4/common/dictnry.c +++ b/xwords4/common/dictnry.c @@ -43,19 +43,22 @@ setBlankTile( DictionaryCtxt* dctx ) for ( i = 0; i < dctx->nFaces; ++i ) { if ( dctx->faces16[i] == 0 ) { + XP_ASSERT( dctx->blankTile == -1 ); /* only one passes test? */ dctx->blankTile = (XP_S8)i; +#ifndef DEBUG break; +#endif } } } /* setBlankTile */ -#if defined BLANKS_FIRST || defined DEBUG +/* #if defined BLANKS_FIRST || defined DEBUG */ XP_Bool dict_hasBlankTile( const DictionaryCtxt* dict ) { return dict->blankTile >= 0; } /* dict_hasBlankTile */ -#endif +/* #endif */ Tile dict_getBlankTile( const DictionaryCtxt* dict )