mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-12 05:27:02 -04:00
Replace BG visibility scripts with C implementation
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
#define N64CHAR(c) (c == ' ' ? 0x0f : (c >= 'A' && c <= 'Z' ? c - 0x27 : c - 0x20))
|
||||
|
||||
#define PORTAL_IS_CLOSED(portalnum) ((g_BgPortals[portalnum].flags & PORTALFLAG_CLOSED) && (g_BgPortals[portalnum].flags & PORTALFLAG_FORCEOPEN) == 0)
|
||||
#define PORTAL_IS_OPEN(portalnum) (!PORTAL_IS_CLOSED(portalnum))
|
||||
|
||||
#ifdef __sgi
|
||||
#define ALIGNED16
|
||||
|
||||
@@ -77,11 +77,7 @@ bool func0f161c08(struct coord *arg0, s16 roomnum);
|
||||
bool func0f161d30(struct coord *arg0, s16 roomnum);
|
||||
bool func0f162128(struct coord *arg0, s16 roomnum);
|
||||
void bgFindRoomsByPos(struct coord *pos, s16 *inrooms, s16 *aboverooms, s32 max, s16 *bestroom);
|
||||
bool bgPushValue(bool value);
|
||||
bool bgPopValue(void);
|
||||
bool bgGetNthValueFromEnd(s32 offset);
|
||||
struct bgcmd *bgExecuteCommandsBranch(struct bgcmd *cmd, bool s2);
|
||||
struct bgcmd *bgExecuteCommands(struct bgcmd *cmd);
|
||||
void bgExecuteCommands(void);
|
||||
void bgTickPortalsXray(void);
|
||||
void func0f1632d4(s16 roomnum1, s16 roomnum2, s16 draworder, struct screenbox *box);
|
||||
void func0f163528(struct var800a4d00 *arg0);
|
||||
|
||||
Reference in New Issue
Block a user