2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-13 06: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

@@ -18,19 +18,17 @@ class CFlameWarp : public CWarp {
float x94_maxSize = FLT_MIN;
float x98_maxInfluenceDistSq;
CStateManager* x9c_stateMgr = nullptr;
bool xa0_24_activated : 1;
bool xa0_24_activated : 1 = false;
bool xa0_25_collisionWarp : 1;
bool xa0_26_processed : 1;
bool xa0_26_processed : 1 = false;
public:
CFlameWarp(float maxInfluenceDist, const zeus::CVector3f& warpPoint, bool collisionWarp)
: x74_warpPoint(warpPoint)
, x80_floatingPoint(warpPoint)
, x98_maxInfluenceDistSq(maxInfluenceDist * maxInfluenceDist) {
, x98_maxInfluenceDistSq(maxInfluenceDist * maxInfluenceDist)
, xa0_25_collisionWarp{collisionWarp} {
x4_collisionPoints.resize(9, warpPoint);
xa0_24_activated = false;
xa0_25_collisionWarp = collisionWarp;
xa0_26_processed = false;
}
const rstl::reserved_vector<zeus::CVector3f, 9>& GetCollisionPoints() const { return x4_collisionPoints; }