mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 05:19:36 +00:00
Remove // clang-format off
where used only for code style formatting
This commit is contained in:
parent
c9f00c68c3
commit
6b4001ef82
2 changed files with 49 additions and 58 deletions
|
@ -922,14 +922,14 @@ s16 func_8001F404(s16 dropId) {
|
|||
}
|
||||
|
||||
// This is convoluted but it seems like it must be a single condition to match
|
||||
// clang-format off
|
||||
if (((dropId == ITEM00_BOMBS_A || dropId == ITEM00_BOMBS_SPECIAL || dropId == ITEM00_BOMBS_B) && INV_CONTENT(ITEM_BOMB) == ITEM_NONE) ||
|
||||
((dropId == ITEM00_ARROWS_SMALL || dropId == ITEM00_ARROWS_MEDIUM || dropId == ITEM00_ARROWS_LARGE) && INV_CONTENT(ITEM_BOW) == ITEM_NONE) ||
|
||||
if (((dropId == ITEM00_BOMBS_A || dropId == ITEM00_BOMBS_SPECIAL || dropId == ITEM00_BOMBS_B) &&
|
||||
INV_CONTENT(ITEM_BOMB) == ITEM_NONE) ||
|
||||
((dropId == ITEM00_ARROWS_SMALL || dropId == ITEM00_ARROWS_MEDIUM || dropId == ITEM00_ARROWS_LARGE) &&
|
||||
INV_CONTENT(ITEM_BOW) == ITEM_NONE) ||
|
||||
((dropId == ITEM00_MAGIC_LARGE || dropId == ITEM00_MAGIC_SMALL) && gSaveContext.magicLevel == 0) ||
|
||||
((dropId == ITEM00_SEEDS) && INV_CONTENT(ITEM_SLINGSHOT) == ITEM_NONE)) {
|
||||
return -1;
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
if (dropId == ITEM00_HEART && gSaveContext.healthCapacity == gSaveContext.health) {
|
||||
return ITEM00_RUPEE_GREEN;
|
||||
|
|
|
@ -1062,14 +1062,12 @@ void Interface_SetSceneRestrictions(GlobalContext* globalCtx) {
|
|||
s16 i;
|
||||
u8 currentScene;
|
||||
|
||||
// clang-format off
|
||||
interfaceCtx->restrictions.hGauge = interfaceCtx->restrictions.bButton =
|
||||
interfaceCtx->restrictions.aButton = interfaceCtx->restrictions.bottles =
|
||||
interfaceCtx->restrictions.tradeItems = interfaceCtx->restrictions.hookshot =
|
||||
interfaceCtx->restrictions.ocarina = interfaceCtx->restrictions.warpSongs =
|
||||
interfaceCtx->restrictions.sunsSong = interfaceCtx->restrictions.farores =
|
||||
interfaceCtx->restrictions.dinsNayrus = interfaceCtx->restrictions.all = 0;
|
||||
// clang-format on
|
||||
interfaceCtx->restrictions.hGauge = interfaceCtx->restrictions.bButton = interfaceCtx->restrictions.aButton =
|
||||
interfaceCtx->restrictions.bottles = interfaceCtx->restrictions.tradeItems =
|
||||
interfaceCtx->restrictions.hookshot = interfaceCtx->restrictions.ocarina =
|
||||
interfaceCtx->restrictions.warpSongs = interfaceCtx->restrictions.sunsSong =
|
||||
interfaceCtx->restrictions.farores = interfaceCtx->restrictions.dinsNayrus =
|
||||
interfaceCtx->restrictions.all = 0;
|
||||
|
||||
i = 0;
|
||||
|
||||
|
@ -2888,48 +2886,41 @@ void Interface_InitVertices(GlobalContext* globalCtx) {
|
|||
|
||||
interfaceCtx->actionVtx = Graph_Alloc(globalCtx->state.gfxCtx, 8 * sizeof(Vtx));
|
||||
|
||||
// clang-format off
|
||||
interfaceCtx->actionVtx[0].v.ob[0] =
|
||||
interfaceCtx->actionVtx[2].v.ob[0] = -14;
|
||||
interfaceCtx->actionVtx[1].v.ob[0] =
|
||||
interfaceCtx->actionVtx[3].v.ob[0] = interfaceCtx->actionVtx[0].v.ob[0] + 28;
|
||||
interfaceCtx->actionVtx[0].v.ob[0] = interfaceCtx->actionVtx[2].v.ob[0] = -14;
|
||||
interfaceCtx->actionVtx[1].v.ob[0] = interfaceCtx->actionVtx[3].v.ob[0] = interfaceCtx->actionVtx[0].v.ob[0] + 28;
|
||||
|
||||
interfaceCtx->actionVtx[0].v.ob[1] =
|
||||
interfaceCtx->actionVtx[1].v.ob[1] = 14;
|
||||
interfaceCtx->actionVtx[2].v.ob[1] =
|
||||
interfaceCtx->actionVtx[3].v.ob[1] = interfaceCtx->actionVtx[0].v.ob[1] - 28;
|
||||
interfaceCtx->actionVtx[0].v.ob[1] = interfaceCtx->actionVtx[1].v.ob[1] = 14;
|
||||
interfaceCtx->actionVtx[2].v.ob[1] = interfaceCtx->actionVtx[3].v.ob[1] = interfaceCtx->actionVtx[0].v.ob[1] - 28;
|
||||
|
||||
interfaceCtx->actionVtx[4].v.ob[0] =
|
||||
interfaceCtx->actionVtx[6].v.ob[0] = -(XREG(21) / 2);
|
||||
interfaceCtx->actionVtx[5].v.ob[0] =
|
||||
interfaceCtx->actionVtx[7].v.ob[0] = interfaceCtx->actionVtx[4].v.ob[0] + XREG(21);
|
||||
interfaceCtx->actionVtx[4].v.ob[0] = interfaceCtx->actionVtx[6].v.ob[0] = -(XREG(21) / 2);
|
||||
interfaceCtx->actionVtx[5].v.ob[0] = interfaceCtx->actionVtx[7].v.ob[0] =
|
||||
interfaceCtx->actionVtx[4].v.ob[0] + XREG(21);
|
||||
|
||||
interfaceCtx->actionVtx[4].v.ob[1] =
|
||||
interfaceCtx->actionVtx[5].v.ob[1] = XREG(28) / 2;
|
||||
interfaceCtx->actionVtx[6].v.ob[1] =
|
||||
interfaceCtx->actionVtx[7].v.ob[1] = interfaceCtx->actionVtx[4].v.ob[1] - XREG(28);
|
||||
interfaceCtx->actionVtx[4].v.ob[1] = interfaceCtx->actionVtx[5].v.ob[1] = XREG(28) / 2;
|
||||
interfaceCtx->actionVtx[6].v.ob[1] = interfaceCtx->actionVtx[7].v.ob[1] =
|
||||
interfaceCtx->actionVtx[4].v.ob[1] - XREG(28);
|
||||
|
||||
for (i = 0; i < 8; i += 4) {
|
||||
interfaceCtx->actionVtx[i].v.ob[2] = interfaceCtx->actionVtx[i+1].v.ob[2] =
|
||||
interfaceCtx->actionVtx[i+2].v.ob[2] = interfaceCtx->actionVtx[i+3].v.ob[2] = 0;
|
||||
interfaceCtx->actionVtx[i].v.ob[2] = interfaceCtx->actionVtx[i + 1].v.ob[2] =
|
||||
interfaceCtx->actionVtx[i + 2].v.ob[2] = interfaceCtx->actionVtx[i + 3].v.ob[2] = 0;
|
||||
|
||||
interfaceCtx->actionVtx[i].v.flag = interfaceCtx->actionVtx[i+1].v.flag =
|
||||
interfaceCtx->actionVtx[i+2].v.flag = interfaceCtx->actionVtx[i+3].v.flag = 0;
|
||||
interfaceCtx->actionVtx[i].v.flag = interfaceCtx->actionVtx[i + 1].v.flag =
|
||||
interfaceCtx->actionVtx[i + 2].v.flag = interfaceCtx->actionVtx[i + 3].v.flag = 0;
|
||||
|
||||
interfaceCtx->actionVtx[i].v.tc[0] = interfaceCtx->actionVtx[i].v.tc[1] =
|
||||
interfaceCtx->actionVtx[i+1].v.tc[1] = interfaceCtx->actionVtx[i+2].v.tc[0] = 0;
|
||||
interfaceCtx->actionVtx[i+1].v.tc[0] = interfaceCtx->actionVtx[i+2].v.tc[1] =
|
||||
interfaceCtx->actionVtx[i+3].v.tc[0] = interfaceCtx->actionVtx[i+3].v.tc[1] = 1024;
|
||||
interfaceCtx->actionVtx[i + 1].v.tc[1] = interfaceCtx->actionVtx[i + 2].v.tc[0] = 0;
|
||||
interfaceCtx->actionVtx[i + 1].v.tc[0] = interfaceCtx->actionVtx[i + 2].v.tc[1] =
|
||||
interfaceCtx->actionVtx[i + 3].v.tc[0] = interfaceCtx->actionVtx[i + 3].v.tc[1] = 1024;
|
||||
|
||||
interfaceCtx->actionVtx[i].v.cn[0] = interfaceCtx->actionVtx[i+1].v.cn[0] =
|
||||
interfaceCtx->actionVtx[i+2].v.cn[0] = interfaceCtx->actionVtx[i+3].v.cn[0] =
|
||||
interfaceCtx->actionVtx[i].v.cn[1] = interfaceCtx->actionVtx[i+1].v.cn[1] =
|
||||
interfaceCtx->actionVtx[i+2].v.cn[1] = interfaceCtx->actionVtx[i+3].v.cn[1] =
|
||||
interfaceCtx->actionVtx[i].v.cn[2] = interfaceCtx->actionVtx[i+1].v.cn[2] =
|
||||
interfaceCtx->actionVtx[i+2].v.cn[2] = interfaceCtx->actionVtx[i+3].v.cn[2] = 255;
|
||||
interfaceCtx->actionVtx[i].v.cn[0] = interfaceCtx->actionVtx[i + 1].v.cn[0] =
|
||||
interfaceCtx->actionVtx[i + 2].v.cn[0] = interfaceCtx->actionVtx[i + 3].v.cn[0] =
|
||||
interfaceCtx->actionVtx[i].v.cn[1] = interfaceCtx->actionVtx[i + 1].v.cn[1] =
|
||||
interfaceCtx->actionVtx[i + 2].v.cn[1] = interfaceCtx->actionVtx[i + 3].v.cn[1] =
|
||||
interfaceCtx->actionVtx[i].v.cn[2] = interfaceCtx->actionVtx[i + 1].v.cn[2] =
|
||||
interfaceCtx->actionVtx[i + 2].v.cn[2] = interfaceCtx->actionVtx[i + 3].v.cn[2] = 255;
|
||||
|
||||
interfaceCtx->actionVtx[i].v.cn[3] = interfaceCtx->actionVtx[i+1].v.cn[3] =
|
||||
interfaceCtx->actionVtx[i+2].v.cn[3] = interfaceCtx->actionVtx[i+3].v.cn[3] = 255;
|
||||
interfaceCtx->actionVtx[i].v.cn[3] = interfaceCtx->actionVtx[i + 1].v.cn[3] =
|
||||
interfaceCtx->actionVtx[i + 2].v.cn[3] = interfaceCtx->actionVtx[i + 3].v.cn[3] = 255;
|
||||
}
|
||||
|
||||
interfaceCtx->actionVtx[5].v.tc[0] = interfaceCtx->actionVtx[7].v.tc[0] = 1536;
|
||||
|
@ -2960,8 +2951,8 @@ void Interface_InitVertices(GlobalContext* globalCtx) {
|
|||
interfaceCtx->beatingHeartVtx[0].v.cn[2] = interfaceCtx->beatingHeartVtx[1].v.cn[2] =
|
||||
interfaceCtx->beatingHeartVtx[2].v.cn[2] = interfaceCtx->beatingHeartVtx[3].v.cn[2] =
|
||||
interfaceCtx->beatingHeartVtx[0].v.cn[3] = interfaceCtx->beatingHeartVtx[1].v.cn[3] =
|
||||
interfaceCtx->beatingHeartVtx[2].v.cn[3] = interfaceCtx->beatingHeartVtx[3].v.cn[3] = 255;
|
||||
// clang-format on
|
||||
interfaceCtx->beatingHeartVtx[2].v.cn[3] = interfaceCtx->beatingHeartVtx[3].v.cn[3] =
|
||||
255;
|
||||
}
|
||||
|
||||
void func_8008A8B8(GlobalContext* globalCtx, s32 topY, s32 bottomY, s32 leftX, s32 rightX) {
|
||||
|
|
Loading…
Reference in a new issue