Skip to content

Commit

Permalink
Clang-format changes exist. Committing.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored and github-actions[bot] committed Feb 25, 2024
1 parent 8182417 commit ec5b5c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 8 additions & 4 deletions code/source/rnd/chest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ namespace rnd {
}
u8 Chest_IsOverrideEnabled(game::actors::En_Box* actor, u16 chestType) {
s16 gid = (actor->dyna.params << 0x14) >> 0x19;
if (gid == 0x3C && gSettingsContext.chestSize == 0) return false;
if (gid == 0x3C && gSettingsContext.chestSize == 1 && chestType == (u16)game::actors::EnBoxType::ENBOX_TYPE_SMALL) return true;
else if (chestType == (u16)game::actors::EnBoxType::ENBOX_TYPE_SMALL) return true;
else return false;
if (gid == 0x3C && gSettingsContext.chestSize == 0)
return false;
if (gid == 0x3C && gSettingsContext.chestSize == 1 && chestType == (u16)game::actors::EnBoxType::ENBOX_TYPE_SMALL)
return true;
else if (chestType == (u16)game::actors::EnBoxType::ENBOX_TYPE_SMALL)
return true;
else
return false;
}
}

Expand Down
12 changes: 6 additions & 6 deletions code/source/rnd/custom_messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ volatile const UnformattedMessage rCustomMessages[512] = {0};
volatile const u32 numCustomMessageEntries = {0};

bool SetCustomMessage(u16 id, game::MessageResEntry* msgResEntry) {
// #if defined ENABLE_DEBUG || defined DEBUG_PRINT
// static u16 lastId;
// if (id && id != lastId)
// rnd::util::Print("Message ID is %#06x\n", id);
// lastId = id;
// #endif
// #if defined ENABLE_DEBUG || defined DEBUG_PRINT
// static u16 lastId;
// if (id && id != lastId)
// rnd::util::Print("Message ID is %#06x\n", id);
// lastId = id;
// #endif

UnformattedMessage customMsgData;
s32 start = 0, end = numCustomMessageEntries - 1, current;
Expand Down

0 comments on commit ec5b5c9

Please sign in to comment.