From c676f97fd8b78268651d428031f968647d25e4a6 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 1 May 2012 01:47:31 +0000 Subject: [PATCH] - Fixed: r_translate.cpp:SetRange() did not set the true color palette entry for single-entry ranges. SVN r3608 (trunk) --- src/r_data/r_translate.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/r_data/r_translate.cpp b/src/r_data/r_translate.cpp index 818d89d16..10bbc6539 100644 --- a/src/r_data/r_translate.cpp +++ b/src/r_data/r_translate.cpp @@ -864,7 +864,11 @@ static bool SetRange(FRemapTable *table, int start, int end, int first, int last bool identity = true; if (start == end) { - table->Remap[start] = (first + last) / 2; + int pi = (first + last) / 2; + table->Remap[start] = GPalette.Remap[pi]; + identity &= (pi == start); + table->Palette[start] = GPalette.BaseColors[table->Remap[start]]; + table->Palette[start].a = 255; } else {