mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-02 01:59:43 -04:00
d82a6ba619
* lib_070d0.c to vm.c * lib_09a80.c to vi.c * lib_0bfb0.c to fault.c * lib_0c000.c to crash.c * lib_11420.c to music.c * lib_13710.c to pimgr.c * lib_184d0.c to ailist.c and path.c * lib_233c0.c to anim.c * lib_24e40.c to collision.c * lib_2fa00.c to rmon.c * lib_34030.c to speaker.c * lib_37b00.c to mp3.c
27 lines
630 B
C
27 lines
630 B
C
#include <ultra64.h>
|
|
#include "constants.h"
|
|
#include "bss.h"
|
|
#include "data.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;
|
|
}
|
|
}
|
|
}
|