From 07320723d8a6f667997f4c1097f0af9224a5b3ed Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 1 Feb 2021 18:17:51 -0500 Subject: [PATCH] Waypoint disable/enable executor Not tested yet --- src/p_spec.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index 1fcba7585..bae374381 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -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; }