mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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;
|
||||
|
||||
// SRB2kart
|
||||
case 2003: // Enable/Disable Waypoints in Tagged Sectors
|
||||
{
|
||||
sector_t *sec;
|
||||
mobj_t *thing;
|
||||
|
||||
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
|
||||
case 499: // Enable/Disable Waypoints in Tagged Sectors
|
||||
{
|
||||
sec = sectors + secnum;
|
||||
{
|
||||
|
||||
for (thing = sec->thinglist; thing; thing = thing->snext)
|
||||
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;
|
||||
}
|
||||
else
|
||||
{
|
||||
thing->extravalue1 = 0;
|
||||
waypointmobj->extravalue1 = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6965,6 +6965,8 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
break;
|
||||
case 2002: // Linedef Trigger: Race Lap
|
||||
break;
|
||||
case 499: // Linedef Executor: Enable/Disable Waypoints
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue