Subversion Repositories eduke32

Rev

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

Rev 5367 Rev 5371
Line 165... Line 165...
165
        return retcol;
165
        return retcol;
166
    }
166
    }
167
167
168
    mindist = INT32_MAX;
168
    mindist = INT32_MAX;
169
169
170
    for (i=lastokcol; i>=0; i--)
170
    for (i = 0; i < lastokcol; ++i)
171
    {
171
    {
172
        char const * const pal1 = (char *)&colmatch_palette[i*3];
172
        char const * const pal1 = (char *)&colmatch_palette[i*3];
173
        int dist = gdist[pal1[1]+g];
173
        int dist = gdist[pal1[1]+g];
174
174
175
        if (dist >= mindist) continue;
175
        if (dist >= mindist) continue;