mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
SubtractNum also makes tripwire subtractive
This commit is contained in:
parent
0233c26386
commit
e456eaed6d
1 changed files with 2 additions and 1 deletions
|
|
@ -2631,6 +2631,7 @@ static void P_ProcessLinedefsAfterSidedefs(void)
|
||||||
{
|
{
|
||||||
size_t i = numlines;
|
size_t i = numlines;
|
||||||
register line_t *ld = lines;
|
register line_t *ld = lines;
|
||||||
|
const boolean subtractTripwire = ((mapheaderinfo[gamemap - 1]->levelflags & LF_SUBTRACTNUM) == LF_SUBTRACTNUM);
|
||||||
|
|
||||||
for (; i--; ld++)
|
for (; i--; ld++)
|
||||||
{
|
{
|
||||||
|
|
@ -2645,7 +2646,7 @@ static void P_ProcessLinedefsAfterSidedefs(void)
|
||||||
|
|
||||||
if (ld->tripwire)
|
if (ld->tripwire)
|
||||||
{
|
{
|
||||||
ld->blendmode = AST_ADD;
|
ld->blendmode = (subtractTripwire ? AST_SUBTRACT : AST_ADD);
|
||||||
ld->alpha = 0xff;
|
ld->alpha = 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue