mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
453: Don't interrupt current FOF fade unless EFFECT5
This commit is contained in:
parent
14339d651d
commit
5b16590ba2
1 changed files with 6 additions and 1 deletions
|
@ -3403,7 +3403,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
INT16 destvalue = line->sidenum[1] != 0xffff ?
|
INT16 destvalue = line->sidenum[1] != 0xffff ?
|
||||||
(INT16)(sides[line->sidenum[1]].textureoffset>>FRACBITS) : (INT16)(line->dx>>FRACBITS);
|
(INT16)(sides[line->sidenum[1]].textureoffset>>FRACBITS) : (INT16)(line->dx>>FRACBITS);
|
||||||
INT16 speed = line->sidenum[1] != 0xffff ?
|
INT16 speed = line->sidenum[1] != 0xffff ?
|
||||||
(INT16)(sides[line->sidenum[1]].rowoffset>>FRACBITS) : (INT16)(abs(line->dy)>>FRACBITS);
|
(INT16)(abs(sides[line->sidenum[1]].rowoffset>>FRACBITS)) : (INT16)(abs(line->dy)>>FRACBITS);
|
||||||
INT16 sectag = (INT16)(sides[line->sidenum[0]].textureoffset>>FRACBITS);
|
INT16 sectag = (INT16)(sides[line->sidenum[0]].textureoffset>>FRACBITS);
|
||||||
INT16 foftag = (INT16)(sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
INT16 foftag = (INT16)(sides[line->sidenum[0]].rowoffset>>FRACBITS);
|
||||||
sector_t *sec; // Sector that the FOF is visible in
|
sector_t *sec; // Sector that the FOF is visible in
|
||||||
|
@ -3433,6 +3433,11 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Prevent continuous execs from interfering on an existing fade
|
||||||
|
if (!(line->flags & ML_EFFECT5)
|
||||||
|
&& rover->fadingdata)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (speed > 0)
|
if (speed > 0)
|
||||||
P_AddFakeFloorFader(rover, secnum, j,
|
P_AddFakeFloorFader(rover, secnum, j,
|
||||||
destvalue,
|
destvalue,
|
||||||
|
|
Loading…
Reference in a new issue