View Single Post
Old January 3, 2012, 16:51   #1
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,417
PowerWyrm is on a distinguished road
Minor glitch with item selection

When you use a tileset with tile height greater than 1 (32x32 tileset for example), the portion containing item selection choices is not "rectangular".

The problem comes from this code in Term_erase():

Code:
        /* Fast access */
        scr_aa = Term->scr->a[y];
        scr_cc = Term->scr->c[y];

        scr_taa = Term->scr->ta[y];
        scr_tcc = Term->scr->tc[y];

        if ((n > 0) && (scr_aa[x] == 255))
        {
            x--;
            n++;
        }
Removing the "if" block fixes the problem (and I don't really see the purpose of that "if" block -- but I could be wrong).
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote