From 38fa1454d8aa610cec8e1ef8184123de584b4b66 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 3 Oct 2015 11:53:05 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/colmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/colmatch.c b/polymer/eduke32/build/src/colmatch.c index 2fb2c2fdc..222b70c5f 100644 --- a/polymer/eduke32/build/src/colmatch.c +++ b/polymer/eduke32/build/src/colmatch.c @@ -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];