mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-16 00:17:13 +00:00
Runtime/Weapon: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -53,19 +53,14 @@ class CProjectileWeapon {
|
||||
std::unique_ptr<CParticleSwoosh> x118_swoosh1;
|
||||
std::unique_ptr<CParticleSwoosh> x11c_swoosh2;
|
||||
std::unique_ptr<CParticleSwoosh> x120_swoosh3;
|
||||
union {
|
||||
struct {
|
||||
bool x124_24_active : 1;
|
||||
bool x124_25_APSO : 1;
|
||||
bool x124_26_AP11 : 1;
|
||||
bool x124_27_AP21 : 1;
|
||||
bool x124_28_AS11 : 1;
|
||||
bool x124_29_AS12 : 1;
|
||||
bool x124_30_AS13 : 1;
|
||||
bool x124_31_VMD2 : 1;
|
||||
};
|
||||
u32 _dummy = 0;
|
||||
};
|
||||
bool x124_24_active : 1;
|
||||
bool x124_25_APSO : 1;
|
||||
bool x124_26_AP11 : 1;
|
||||
bool x124_27_AP21 : 1;
|
||||
bool x124_28_AS11 : 1;
|
||||
bool x124_29_AS12 : 1;
|
||||
bool x124_30_AS13 : 1;
|
||||
bool x124_31_VMD2 : 1;
|
||||
|
||||
public:
|
||||
CProjectileWeapon(const TToken<CWeaponDescription>& wDesc, const zeus::CVector3f& worldOffset,
|
||||
|
||||
Reference in New Issue
Block a user