mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
Runtime/World: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -66,18 +66,14 @@ class CScriptWater : public CScriptTrigger {
|
||||
std::unique_ptr<bool[]> x2dc_vertIntersects;
|
||||
std::unique_ptr<u8[]> x2e0_patchIntersects; // 0: all clear, 1: all intersect, 2: partial intersect
|
||||
int x2e4_computedGridCellCount = 0;
|
||||
union {
|
||||
struct {
|
||||
bool x2e8_24_b4 : 1;
|
||||
bool x2e8_25_morphIn : 1;
|
||||
bool x2e8_26_morphing : 1;
|
||||
bool x2e8_27_allowRender : 1;
|
||||
bool x2e8_28_recomputeClipping : 1;
|
||||
bool x2e8_29_alphaIn : 1;
|
||||
bool x2e8_30_alphaOut : 1;
|
||||
};
|
||||
u32 _dummy = 0;
|
||||
};
|
||||
bool x2e8_24_b4 : 1;
|
||||
bool x2e8_25_morphIn : 1;
|
||||
bool x2e8_26_morphing : 1;
|
||||
bool x2e8_27_allowRender : 1;
|
||||
bool x2e8_28_recomputeClipping : 1;
|
||||
bool x2e8_29_alphaIn : 1;
|
||||
bool x2e8_30_alphaOut : 1;
|
||||
|
||||
void SetupGrid(bool recomputeClipping);
|
||||
void SetupGridClipping(CStateManager& mgr, int computeVerts);
|
||||
void UpdateSplashInhabitants(CStateManager& mgr);
|
||||
|
||||
Reference in New Issue
Block a user