455: TFERLINE - Set target sector's colormap first to control backsector's colormap
This commit is contained in:
parent
d85019b4e4
commit
51a2982226
|
@ -3377,8 +3377,10 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
{
|
{
|
||||||
extracolormap_t *source_exc, *dest_exc, *exc;
|
extracolormap_t *source_exc, *dest_exc, *exc;
|
||||||
|
|
||||||
exc = (line->flags & ML_TFERLINE) ? line->backsector->extra_colormap // TFERLINE: use back colormap instead of target sector
|
if (line->flags & ML_TFERLINE) // use back colormap instead of target sector
|
||||||
: sectors[secnum].extra_colormap;
|
sectors[secnum].extra_colormap = line->backsector->extra_colormap;
|
||||||
|
|
||||||
|
exc = sectors[secnum].extra_colormap;
|
||||||
|
|
||||||
if (!(line->flags & ML_BOUNCY) // BOUNCY: Do not override fade from default rgba
|
if (!(line->flags & ML_BOUNCY) // BOUNCY: Do not override fade from default rgba
|
||||||
&& !R_CheckDefaultColormap(line->frontsector->extra_colormap, true, false, false)
|
&& !R_CheckDefaultColormap(line->frontsector->extra_colormap, true, false, false)
|
||||||
|
|
Loading…
Reference in New Issue