Waypoint disable/enable executor

Not tested yet
This commit is contained in:
Sally Coolatta 2021-02-01 18:17:51 -05:00
parent 9257c373ff
commit 07320723d8

View file

@ -3893,6 +3893,32 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
PolyFade(line);
break;
// SRB2kart
case 2003: // Enable/Disable Waypoints in Tagged Sectors
{
sector_t *sec;
mobj_t *thing;
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
{
sec = sectors + secnum;
for (thing = sec->thinglist; thing; thing = thing->snext)
if (thing->type == MT_WAYPOINT)
{
if (line->flags & ML_NOCLIMB)
{
thing->extravalue1 = 1;
}
else
{
thing->extravalue1 = 0;
}
}
}
break;
}
default:
break;
}