diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-06-15 13:57:09 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-06-15 13:57:09 -0700 |
| commit | f3f7b518cbb96f95ce3e111ea13d4a9f8ca9682e (patch) | |
| tree | 298363f6ad282453cd43fe713de27e3261778339 /src/flags.c | |
| parent | a99313e537ac4298eed0b27472f5fae66d98e857 (diff) | |
bladeBrothers.c OK
Diffstat (limited to 'src/flags.c')
| -rw-r--r-- | src/flags.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/flags.c b/src/flags.c new file mode 100644 index 00000000..2c8534db --- /dev/null +++ b/src/flags.c @@ -0,0 +1,15 @@ +#include "global.h" +#include "room.h" +#include "flags.h" + +u32 extern CheckLocalFlagByOffset(u32, u32); +extern u32 ReadBit(u32*, u32); + +u32 CheckGlobalFlag(u32 index) { + return CheckLocalFlagByOffset(0, index); +} + +u32 CheckRoomFlag(u32 index) +{ + return ReadBit(&gRoomVars.roomFlags, index); +}
\ No newline at end of file |
