Subversion Repositories eduke32

Rev

Rev 4997 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4997 Rev 5055
Line 34... Line 34...
34
static pthtyp *texcache_tryart(int32_t dapicnum, int32_t dapalnum, int32_t dashade, int32_t dameth)
34
static pthtyp *texcache_tryart(int32_t dapicnum, int32_t dapalnum, int32_t dashade, int32_t dameth)
35
{
35
{
36
    const int32_t j = dapicnum&(GLTEXCACHEADSIZ-1);
36
    const int32_t j = dapicnum&(GLTEXCACHEADSIZ-1);
37
    pthtyp *pth;
37
    pthtyp *pth;
38
38
-
 
39
    if ((hictinting[dapalnum].f & HICTINT_USEONART) && !(hictinting[dapalnum].f & HICTINT_APPLYOVERPALSWAP))
-
 
40
        dapalnum = 0;
-
 
41
39
    // load from art
42
    // load from art
40
    for (pth=texcache.list[j]; pth; pth=pth->next)
43
    for (pth=texcache.list[j]; pth; pth=pth->next)
41
        if (pth->picnum == dapicnum && pth->palnum == dapalnum && pth->shade == dashade &&
44
        if (pth->picnum == dapicnum && pth->palnum == dapalnum && pth->shade == dashade &&
42
                (pth->flags & (PTH_CLAMPED+PTH_HIGHTILE)) == TO_PTH_CLAMPED(dameth) &&
45
                (pth->flags & (PTH_CLAMPED+PTH_HIGHTILE)) == TO_PTH_CLAMPED(dameth) &&
43
                polymost_want_npotytex(dameth, tilesiz[dapicnum].y) == !!(pth->flags&PTH_NPOTWALL)
46
                polymost_want_npotytex(dameth, tilesiz[dapicnum].y) == !!(pth->flags&PTH_NPOTWALL)