mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Use linedef 499, make it actually work
This commit is contained in:
parent
9d4afb9aec
commit
af2b525d31
1 changed files with 6 additions and 4 deletions
10
src/p_spec.c
10
src/p_spec.c
|
|
@ -3904,25 +3904,25 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
case 2003: // Enable/Disable Waypoints in Tagged Sectors
|
|
||||||
{
|
{
|
||||||
sector_t *sec;
|
sector_t *sec;
|
||||||
mobj_t *thing;
|
mobj_t *thing;
|
||||||
|
|
||||||
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
|
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
|
||||||
|
case 499: // Enable/Disable Waypoints in Tagged Sectors
|
||||||
{
|
{
|
||||||
sec = sectors + secnum;
|
sec = sectors + secnum;
|
||||||
|
{
|
||||||
|
|
||||||
for (thing = sec->thinglist; thing; thing = thing->snext)
|
for (thing = sec->thinglist; thing; thing = thing->snext)
|
||||||
if (thing->type == MT_WAYPOINT)
|
if (thing->type == MT_WAYPOINT)
|
||||||
|
// Needs to do this instead of simply iterating through sector thing list because they have MF_NOSECTOR.
|
||||||
{
|
{
|
||||||
if (line->flags & ML_NOCLIMB)
|
|
||||||
{
|
{
|
||||||
thing->extravalue1 = 1;
|
thing->extravalue1 = 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
{
|
||||||
thing->extravalue1 = 0;
|
waypointmobj->extravalue1 = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -6965,6 +6965,8 @@ void P_SpawnSpecials(boolean fromnetsave)
|
||||||
break;
|
break;
|
||||||
case 2002: // Linedef Trigger: Race Lap
|
case 2002: // Linedef Trigger: Race Lap
|
||||||
break;
|
break;
|
||||||
|
case 499: // Linedef Executor: Enable/Disable Waypoints
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue