mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
9991201f04
commit
38fa1454d8
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue