From 9e13008481a526eca87ca480bf6bc52b0f31e795 Mon Sep 17 00:00:00 2001 From: James Haley Date: Mon, 14 Feb 2011 04:23:39 +0000 Subject: Made note of vanilla Sigil damage thrust bug, and repaired two issues with color translations (fixes Harris's weird white/green spot when he dies). Subversion-branch: /branches/strife-branch Subversion-revision: 2266 --- src/strife/r_draw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/strife/r_draw.c') diff --git a/src/strife/r_draw.c b/src/strife/r_draw.c index d6c6b6f9..61226b15 100644 --- a/src/strife/r_draw.c +++ b/src/strife/r_draw.c @@ -484,14 +484,13 @@ void R_InitTranslationTables (void) translationtables [i+5*256] = (i & 0x0f) + 96; translationtables [i+6*256] = (i & 0x0f) - 112; } - else if(i >= 0x50 && i<= 0x5f) { translationtables [i ] = i; translationtables [i+ 256] = i; translationtables [i+2*256] = i; translationtables [i+3*256] = i; - translationtables [i+4*256] = (i & 0x0f) + -128; + translationtables [i+4*256] = (i & 0x0f) + 0x80; translationtables [i+5*256] = (i & 0x0f) + 16; translationtables [i+6*256] = (i & 0x0f) + 64; } @@ -514,6 +513,9 @@ void R_InitTranslationTables (void) translationtables [i+4*256] = (i & 0x0f) - 96; translationtables [i+5*256] = (i & 0x0f) + 32; translationtables [i+6*256] = (i & 0x0f); + // haleyjd 20110213: missing code: + if(!(i & 0x0f)) + translationtables[i+6*256] = 1; } else if(i >= 0xf7 && i<= 0xfb) { @@ -535,7 +537,7 @@ void R_InitTranslationTables (void) translationtables [i+5*256] = i; translationtables [i+6*256] = i; } - else if(i >= 0x20 && i<= 0x40) + else if(i >= 0x20 && i <= 0x3f) // haleyjd 20110213: fixed upper end { translationtables [i ] = col2; translationtables [i+ 256] = col2; -- cgit v1.2.3