2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +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

@@ -28,21 +28,16 @@ class CScriptSound : public CActor {
float x114_pan;
bool x116_;
float x118_pitch;
union {
struct {
bool x11c_24_playRequested : 1;
bool x11c_25_looped : 1;
bool x11c_26_nonEmitter : 1;
bool x11c_27_autoStart : 1;
bool x11c_28_occlusionTest : 1;
bool x11c_29_acoustics : 1;
bool x11c_30_worldSfx : 1;
bool x11c_31_selfFree : 1;
bool x11d_24_allowDuplicates : 1;
bool x11d_25_processedThisFrame : 1;
};
u32 x11c_dummy = 0;
};
bool x11c_24_playRequested : 1;
bool x11c_25_looped : 1;
bool x11c_26_nonEmitter : 1;
bool x11c_27_autoStart : 1;
bool x11c_28_occlusionTest : 1;
bool x11c_29_acoustics : 1;
bool x11c_30_worldSfx : 1;
bool x11c_31_selfFree : 1;
bool x11d_24_allowDuplicates : 1;
bool x11d_25_processedThisFrame : 1;
static float GetOccludedVolumeAmount(const zeus::CVector3f& pos, const CStateManager& mgr);