2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 23:07:42 +00:00

RuntimeCommonB: Make use of bitfield initializers where applicable

Given that we now target C++20, we can make use of bitfield initializers
where applicable.
This commit is contained in:
Lioncash
2020-04-20 00:57:50 -04:00
parent 2103c38f54
commit 554893ef85
184 changed files with 587 additions and 1117 deletions

View File

@@ -24,12 +24,7 @@ CWallWalker::CWallWalker(ECharacter chr, TUniqueId uid, std::string_view name, E
, x5cc_bendingHackAnim(
GetModelData()->GetAnimationData()->GetCharacterInfo().GetAnimationIndex("BendingAnimationHack"sv))
, x5d0_walkerType(wType)
, x5d6_24_alignToFloor(false)
, x5d6_25_hasAlignSurface(false)
, x5d6_26_playerObstructed(false)
, x5d6_27_disableMove(disableMove)
, x5d6_28_addBendingWeight(true)
, x5d6_29_applyBendingHack(false) {}
, x5d6_27_disableMove(disableMove) {}
void CWallWalker::OrientToSurfaceNormal(const zeus::CVector3f& normal, float clampAngle) {
float dot = x34_transform.basis[2].dot(normal);