Reverse the iteration direction of the getclosetcol fallback loop, preferring the tiebreaking color to be the first one numerically in the palette, not the last.

git-svn-id: https://svn.eduke32.com/eduke32@5371 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-10-03 11:53:05 +00:00
parent 9991201f04
commit 38fa1454d8

View file

@ -167,7 +167,7 @@ skip:
mindist = INT32_MAX;
for (i=lastokcol; i>=0; i--)
for (i = 0; i < lastokcol; ++i)
{
char const * const pal1 = (char *)&colmatch_palette[i*3];
int dist = gdist[pal1[1]+g];