mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-05 11:17:23 -04:00
28 lines
658 B
C
28 lines
658 B
C
#include <ultra64.h>
|
|
#include "constants.h"
|
|
#include "bss.h"
|
|
#include "data.h"
|
|
#include "game/padhalllv.h"
|
|
#include "types.h"
|
|
|
|
void objSetBlockedPathUnblocked(struct defaultobj *blocker, bool unblocked)
|
|
{
|
|
if (blocker->hidden & OBJHFLAG_02000000) {
|
|
struct blockedpathobj *bp = g_BlockedPaths;
|
|
|
|
while (bp) {
|
|
if (bp->blocker == blocker) {
|
|
if (unblocked) {
|
|
waypointEnableSegment(&g_StageSetup.waypoints[bp->waypoint1], &g_StageSetup.waypoints[bp->waypoint2]);
|
|
break;
|
|
} else {
|
|
waypointDisableSegment(&g_StageSetup.waypoints[bp->waypoint1], &g_StageSetup.waypoints[bp->waypoint2]);
|
|
break;
|
|
}
|
|
}
|
|
|
|
bp = bp->next;
|
|
}
|
|
}
|
|
}
|