mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-30 22:50:51 +00:00
455: TFERLINE - Set target sector's colormap first to control backsector's colormap
This commit is contained in:
parent
d85019b4e4
commit
51a2982226
1 changed files with 4 additions and 2 deletions
|
@ -3377,8 +3377,10 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
{
|
||||
extracolormap_t *source_exc, *dest_exc, *exc;
|
||||
|
||||
exc = (line->flags & ML_TFERLINE) ? line->backsector->extra_colormap // TFERLINE: use back colormap instead of target sector
|
||||
: sectors[secnum].extra_colormap;
|
||||
if (line->flags & ML_TFERLINE) // use back colormap instead of target sector
|
||||
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
|
||||
&& !R_CheckDefaultColormap(line->frontsector->extra_colormap, true, false, false)
|
||||
|
|
Loading…
Reference in a new issue