Apply clang-format to files (#5273)

This commit is contained in:
Archez
2025-04-01 22:33:38 -04:00
committed by GitHub
parent e8389e0b2e
commit 8f126344a4
885 changed files with 40384 additions and 36263 deletions
+11 -11
View File
@@ -43,7 +43,7 @@ extern "C" void Ship_ExtendedCullingActorAdjustProjectedX(Actor* actor) {
}
// Restores the projectedPos values on the actor after modifications from the Extended Culling hacks
//extern "C" void Ship_ExtendedCullingActorRestoreProjectedPos(PlayState* play, Actor* actor) {
// extern "C" void Ship_ExtendedCullingActorRestoreProjectedPos(PlayState* play, Actor* actor) {
// f32 invW = 0.0f;
// Actor_GetProjectedPos(play, &actor->world.pos, &actor->projectedPos, &invW);
//}
@@ -78,21 +78,21 @@ extern "C" void Ship_CreateQuadVertexGroup(Vtx* vtxList, s32 xStart, s32 yStart,
}
extern "C" f32 Ship_GetCharFontWidth(u8 character) {
u8 adjustedChar = character - ' ';
u8 adjustedChar = character - ' ';
if (adjustedChar >= ARRAY_COUNTU(sFontWidths)) {
return 0.0f;
}
if (adjustedChar >= ARRAY_COUNTU(sFontWidths)) {
return 0.0f;
}
return sFontWidths[adjustedChar];
return sFontWidths[adjustedChar];
}
extern "C" void* Ship_GetCharFontTexture(u8 character) {
u8 adjustedChar = character - ' ';
u8 adjustedChar = character - ' ';
if (adjustedChar >= ARRAY_COUNTU(fontTbl)) {
return (void*)gEmptyTexture;
}
if (adjustedChar >= ARRAY_COUNTU(fontTbl)) {
return (void*)gEmptyTexture;
}
return (void*)fontTbl[adjustedChar];
return (void*)fontTbl[adjustedChar];
}