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

Runtime/World: Replace bitfield unions with constructor initializers

This commit is contained in:
2020-04-11 01:50:10 -04:00
parent 22880abb7e
commit bb7e94f304
69 changed files with 583 additions and 657 deletions

View File

@@ -18,16 +18,10 @@ class CScriptActorRotate : public CEntity {
float x40_maxTime;
float x44_currentTime = 0.f;
std::map<TUniqueId, zeus::CTransform> x48_actors;
union {
struct {
bool x58_24_updateRotation : 1;
bool x58_25_skipSpiderBallWaypoints : 1;
bool x58_26_updateActors : 1;
bool x58_27_updateOnCreation : 1;
};
u32 dummy = 0;
};
bool x58_24_updateRotation : 1;
bool x58_25_skipSpiderBallWaypoints : 1;
bool x58_26_updateActors : 1;
bool x58_27_updateOnCreation : 1;
void UpdateActors(bool, CStateManager&);
void UpdateSpiderBallWaypoints(CStateManager&);