mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Not everything got commited...
This commit is contained in:
parent
af2b525d31
commit
51a8d8d5cd
1 changed files with 24 additions and 13 deletions
37
src/p_spec.c
37
src/p_spec.c
|
|
@ -3904,30 +3904,41 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
{
|
|
||||||
sector_t *sec;
|
|
||||||
mobj_t *thing;
|
|
||||||
|
|
||||||
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
|
|
||||||
case 499: // Enable/Disable Waypoints in Tagged Sectors
|
case 499: // Enable/Disable Waypoints in Tagged Sectors
|
||||||
{
|
{
|
||||||
sec = sectors + secnum;
|
sector_t *sec;
|
||||||
{
|
mobj_t *waypointmobj;
|
||||||
|
|
||||||
for (thing = sec->thinglist; thing; thing = thing->snext)
|
if (waypointcap == NULL)
|
||||||
if (thing->type == MT_WAYPOINT)
|
|
||||||
// Needs to do this instead of simply iterating through sector thing list because they have MF_NOSECTOR.
|
|
||||||
{
|
{
|
||||||
{
|
break;
|
||||||
thing->extravalue1 = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while ((secnum = P_FindSectorFromTag(line->tag, secnum)) >= 0)
|
||||||
|
{
|
||||||
|
sec = sectors + secnum;
|
||||||
|
|
||||||
|
// Needs to do this instead of simply iterating through sector thing list because they have MF_NOSECTOR.
|
||||||
|
// Maybe it'd be OK to remove, but I'd like to play it safe.
|
||||||
|
for (waypointmobj = waypointcap; waypointmobj != NULL; waypointmobj = waypointmobj->tracer)
|
||||||
|
{
|
||||||
|
sector_t *waypointSector = R_PointInSubsector(waypointmobj->x, waypointmobj->y)->sector;
|
||||||
|
|
||||||
|
if (waypointSector == sec)
|
||||||
|
{
|
||||||
|
if (line->flags & ML_NOCLIMB)
|
||||||
|
{
|
||||||
|
waypointmobj->extravalue1 = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
waypointmobj->extravalue1 = 0;
|
waypointmobj->extravalue1 = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue