From efc7365df998344afeee56a370c8fdbf67cdb8a3 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 18 Dec 2019 09:31:10 +0000 Subject: [PATCH] Fix the interpretation of old-format PALETTE.DAT Backported from PCExhumed. git-svn-id: https://svn.eduke32.com/eduke32@8436 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/palette.cpp --- source/build/src/palette.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/build/src/palette.cpp b/source/build/src/palette.cpp index d91079a59..0a38ad35b 100644 --- a/source/build/src/palette.cpp +++ b/source/build/src/palette.cpp @@ -265,13 +265,15 @@ void paletteLoadFromDisk(void) // Read the entries above and on the diagonal, if the table is // thought as being row-major. - if (read_and_test(fil, &transluc[256*i + i], 256-i-1)) + if (read_and_test(fil, &transluc[256*i + i + 1], 255-i)) return; // Duplicate the entries below the diagonal. - for (bssize_t j=0; j