SubtractNum also makes tripwire subtractive
This commit is contained in:
parent
15e02127dc
commit
607c5c5dae
1 changed files with 2 additions and 1 deletions
|
|
@ -3090,6 +3090,7 @@ static void P_ProcessLinedefsAfterSidedefs(void)
|
|||
{
|
||||
size_t i = numlines;
|
||||
register line_t *ld = lines;
|
||||
const boolean subtractTripwire = ((mapheaderinfo[gamemap - 1]->levelflags & LF_SUBTRACTNUM) == LF_SUBTRACTNUM);
|
||||
|
||||
for (; i--; ld++)
|
||||
{
|
||||
|
|
@ -3104,7 +3105,7 @@ static void P_ProcessLinedefsAfterSidedefs(void)
|
|||
|
||||
if (ld->tripwire)
|
||||
{
|
||||
ld->blendmode = AST_ADD;
|
||||
ld->blendmode = (subtractTripwire ? AST_SUBTRACT : AST_ADD);
|
||||
ld->alpha = FRACUNIT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue