mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Change vis->transmap statement
This commit is contained in:
parent
1aa324add0
commit
f2e09eb2f6
1 changed files with 8 additions and 11 deletions
|
|
@ -2007,24 +2007,19 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
vis->scale += FixedMul(scalestep, spriteyscale) * (vis->x1 - x1);
|
||||
}
|
||||
|
||||
vis->patch = patch;
|
||||
|
||||
//
|
||||
// determine the colormap (lightlevel & special effects)
|
||||
//
|
||||
vis->transmap = NULL;
|
||||
|
||||
// specific translucency
|
||||
if (!cv_translucency.value)
|
||||
; // no translucency
|
||||
else if (trans)
|
||||
if (cv_translucency.value && trans)
|
||||
vis->transmap = transtables + ((trans-1)<<FF_TRANSSHIFT);
|
||||
else
|
||||
vis->transmap = NULL;
|
||||
|
||||
if (R_ThingIsFullBright(oldthing) || oldthing->flags2 & MF2_SHADOW || thing->flags2 & MF2_SHADOW)
|
||||
vis->cut |= SC_FULLBRIGHT;
|
||||
else if (R_ThingIsFullDark(oldthing))
|
||||
vis->cut |= SC_FULLDARK;
|
||||
|
||||
//
|
||||
// determine the colormap (lightlevel & special effects)
|
||||
//
|
||||
if (vis->cut & SC_FULLBRIGHT
|
||||
&& (!vis->extra_colormap || !(vis->extra_colormap->flags & CMF_FADEFULLBRIGHTSPRITES)))
|
||||
{
|
||||
|
|
@ -2049,6 +2044,8 @@ static void R_ProjectSprite(mobj_t *thing)
|
|||
if (splat)
|
||||
vis->cut |= SC_SPLAT; // I like ya cut g
|
||||
|
||||
vis->patch = patch;
|
||||
|
||||
if (thing->subsector->sector->numlights && !(shadowdraw || splat))
|
||||
R_SplitSprite(vis);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue