mirror of https://github.com/zeldaret/oot.git
				
				
				
			Remove `// clang-format off` where used only for code style formatting
This commit is contained in:
		
							parent
							
								
									c9f00c68c3
								
							
						
					
					
						commit
						6b4001ef82
					
				|  | @ -922,14 +922,14 @@ s16 func_8001F404(s16 dropId) { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // This is convoluted but it seems like it must be a single condition to match
 |     // 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) && | ||||||
|     if (((dropId == ITEM00_BOMBS_A      || dropId == ITEM00_BOMBS_SPECIAL || dropId == ITEM00_BOMBS_B)      && INV_CONTENT(ITEM_BOMB) == ITEM_NONE) || |          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_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_MAGIC_LARGE || dropId == ITEM00_MAGIC_SMALL) && gSaveContext.magicLevel == 0) || | ||||||
|         ((dropId == ITEM00_SEEDS) && INV_CONTENT(ITEM_SLINGSHOT) == ITEM_NONE)) { |         ((dropId == ITEM00_SEEDS) && INV_CONTENT(ITEM_SLINGSHOT) == ITEM_NONE)) { | ||||||
|         return -1; |         return -1; | ||||||
|     } |     } | ||||||
|     // clang-format on
 |  | ||||||
| 
 | 
 | ||||||
|     if (dropId == ITEM00_HEART && gSaveContext.healthCapacity == gSaveContext.health) { |     if (dropId == ITEM00_HEART && gSaveContext.healthCapacity == gSaveContext.health) { | ||||||
|         return ITEM00_RUPEE_GREEN; |         return ITEM00_RUPEE_GREEN; | ||||||
|  |  | ||||||
|  | @ -1062,14 +1062,12 @@ void Interface_SetSceneRestrictions(GlobalContext* globalCtx) { | ||||||
|     s16 i; |     s16 i; | ||||||
|     u8 currentScene; |     u8 currentScene; | ||||||
| 
 | 
 | ||||||
|     // clang-format off
 |     interfaceCtx->restrictions.hGauge = interfaceCtx->restrictions.bButton = interfaceCtx->restrictions.aButton = | ||||||
|     interfaceCtx->restrictions.hGauge = interfaceCtx->restrictions.bButton = |         interfaceCtx->restrictions.bottles = interfaceCtx->restrictions.tradeItems = | ||||||
|     interfaceCtx->restrictions.aButton = interfaceCtx->restrictions.bottles = |             interfaceCtx->restrictions.hookshot = interfaceCtx->restrictions.ocarina = | ||||||
|     interfaceCtx->restrictions.tradeItems = interfaceCtx->restrictions.hookshot = |                 interfaceCtx->restrictions.warpSongs = interfaceCtx->restrictions.sunsSong = | ||||||
|     interfaceCtx->restrictions.ocarina = interfaceCtx->restrictions.warpSongs = |                     interfaceCtx->restrictions.farores = interfaceCtx->restrictions.dinsNayrus = | ||||||
|     interfaceCtx->restrictions.sunsSong = interfaceCtx->restrictions.farores = |                         interfaceCtx->restrictions.all = 0; | ||||||
|     interfaceCtx->restrictions.dinsNayrus = interfaceCtx->restrictions.all = 0; |  | ||||||
|     // clang-format on
 |  | ||||||
| 
 | 
 | ||||||
|     i = 0; |     i = 0; | ||||||
| 
 | 
 | ||||||
|  | @ -2888,26 +2886,19 @@ void Interface_InitVertices(GlobalContext* globalCtx) { | ||||||
| 
 | 
 | ||||||
|     interfaceCtx->actionVtx = Graph_Alloc(globalCtx->state.gfxCtx, 8 * sizeof(Vtx)); |     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[0].v.ob[0] = |     interfaceCtx->actionVtx[1].v.ob[0] = interfaceCtx->actionVtx[3].v.ob[0] = interfaceCtx->actionVtx[0].v.ob[0] + 28; | ||||||
|     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[0].v.ob[1] = interfaceCtx->actionVtx[1].v.ob[1] = 14; | ||||||
|     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[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[4].v.ob[0] = interfaceCtx->actionVtx[6].v.ob[0] = -(XREG(21) / 2); | ||||||
|     interfaceCtx->actionVtx[6].v.ob[0] = -(XREG(21) / 2); |     interfaceCtx->actionVtx[5].v.ob[0] = interfaceCtx->actionVtx[7].v.ob[0] = | ||||||
|     interfaceCtx->actionVtx[5].v.ob[0] = |         interfaceCtx->actionVtx[4].v.ob[0] + XREG(21); | ||||||
|     interfaceCtx->actionVtx[7].v.ob[0] = interfaceCtx->actionVtx[4].v.ob[0] + XREG(21); |  | ||||||
| 
 | 
 | ||||||
|     interfaceCtx->actionVtx[4].v.ob[1] = |     interfaceCtx->actionVtx[4].v.ob[1] = interfaceCtx->actionVtx[5].v.ob[1] = XREG(28) / 2; | ||||||
|     interfaceCtx->actionVtx[5].v.ob[1] = XREG(28) / 2; |     interfaceCtx->actionVtx[6].v.ob[1] = interfaceCtx->actionVtx[7].v.ob[1] = | ||||||
|     interfaceCtx->actionVtx[6].v.ob[1] = |         interfaceCtx->actionVtx[4].v.ob[1] - XREG(28); | ||||||
|     interfaceCtx->actionVtx[7].v.ob[1] = interfaceCtx->actionVtx[4].v.ob[1] - XREG(28); |  | ||||||
| 
 | 
 | ||||||
|     for (i = 0; i < 8; i += 4) { |     for (i = 0; i < 8; i += 4) { | ||||||
|         interfaceCtx->actionVtx[i].v.ob[2] = interfaceCtx->actionVtx[i + 1].v.ob[2] = |         interfaceCtx->actionVtx[i].v.ob[2] = interfaceCtx->actionVtx[i + 1].v.ob[2] = | ||||||
|  | @ -2960,8 +2951,8 @@ void Interface_InitVertices(GlobalContext* globalCtx) { | ||||||
|                     interfaceCtx->beatingHeartVtx[0].v.cn[2] = interfaceCtx->beatingHeartVtx[1].v.cn[2] = |                     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[2].v.cn[2] = interfaceCtx->beatingHeartVtx[3].v.cn[2] = | ||||||
|                             interfaceCtx->beatingHeartVtx[0].v.cn[3] = interfaceCtx->beatingHeartVtx[1].v.cn[3] = |                             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; |                                 interfaceCtx->beatingHeartVtx[2].v.cn[3] = interfaceCtx->beatingHeartVtx[3].v.cn[3] = | ||||||
|     // clang-format on
 |                                     255; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void func_8008A8B8(GlobalContext* globalCtx, s32 topY, s32 bottomY, s32 leftX, s32 rightX) { | void func_8008A8B8(GlobalContext* globalCtx, s32 topY, s32 bottomY, s32 leftX, s32 rightX) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Dragorn421
						Dragorn421