don't consider specials that are blanks to be bitmap-backed tiles.

This prevents the board from passing an array of empty bitmaps into
draw code which in turn allows platform code to be less defensive.
This commit is contained in:
eehouse 2010-03-08 06:11:42 +00:00
parent 08d5139631
commit 3b94642e3d

View file

@ -413,7 +413,7 @@ XP_Bool
dict_faceIsBitmap( const DictionaryCtxt* dict, Tile tile )
{
const XP_UCHAR* facep = dict_getTileStringRaw( dict, tile );
return IS_SPECIAL(*facep);
return IS_SPECIAL(*facep) && (tile != dict->blankTile);
} /* dict_faceIsBitmap */
void