2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 16:46:10 +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

@@ -28,12 +28,12 @@ protected:
s32 x5cc_bendingHackAnim;
EWalkerType x5d0_walkerType;
s16 x5d4_thinkCounter = 0;
bool x5d6_24_alignToFloor : 1;
bool x5d6_25_hasAlignSurface : 1;
bool x5d6_26_playerObstructed : 1;
bool x5d6_24_alignToFloor : 1 = false;
bool x5d6_25_hasAlignSurface : 1 = false;
bool x5d6_26_playerObstructed : 1 = false;
bool x5d6_27_disableMove : 1;
bool x5d6_28_addBendingWeight : 1;
bool x5d6_29_applyBendingHack : 1;
bool x5d6_28_addBendingWeight : 1 = true;
bool x5d6_29_applyBendingHack : 1 = false;
static zeus::CVector3f ProjectVectorToPlane(const zeus::CVector3f& pt, const zeus::CVector3f& plane) {
return pt - plane * pt.dot(plane);
}