From 219e482771f64677d2d59820345684cf3060968d Mon Sep 17 00:00:00 2001 From: Samuel Villareal Date: Sun, 5 Sep 2010 07:18:03 +0000 Subject: + Strife translation tables implemented + Changed MF_TRANSSHIFT to 28 (was 26) Subversion-branch: /branches/strife-branch Subversion-revision: 2013 --- src/strife/r_things.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/strife/r_things.c') diff --git a/src/strife/r_things.c b/src/strife/r_things.c index 90267052..45b71915 100644 --- a/src/strife/r_things.c +++ b/src/strife/r_things.c @@ -414,11 +414,12 @@ R_DrawVisSprite // NULL colormap = shadow draw colfunc = fuzzcolfunc; } - else if (vis->mobjflags & MF_TRANSLATION) + // villsa [STRIFE] new translation tables + else if (vis->mobjflags & (MF_COLORSWAP1|MF_COLORSWAP2|MF_COLORSWAP3)) { colfunc = transcolfunc; dc_translation = translationtables - 256 + - ( (vis->mobjflags & MF_TRANSLATION) >> (MF_TRANSSHIFT-8) ); + ((vis->mobjflags & (MF_COLORSWAP1|MF_COLORSWAP2|MF_COLORSWAP3))>>20); } dc_iscale = abs(vis->xiscale)>>detailshift; -- cgit v1.2.3