mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:07:43 +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:
@@ -15,15 +15,7 @@ CProjectileWeapon::CProjectileWeapon(const TToken<CWeaponDescription>& wDesc, co
|
||||
, x10_random(g_GlobalSeed)
|
||||
, x14_localToWorldXf(localToWorld)
|
||||
, x74_worldOffset(worldOffset)
|
||||
, xe4_flags(flags)
|
||||
, x124_24_active(true)
|
||||
, x124_25_APSO(false)
|
||||
, x124_26_AP11(false)
|
||||
, x124_27_AP21(false)
|
||||
, x124_28_AS11(false)
|
||||
, x124_29_AS12(false)
|
||||
, x124_30_AS13(false)
|
||||
, x124_31_VMD2(false) {
|
||||
, xe4_flags(flags) {
|
||||
CGlobalRandom gr(x10_random);
|
||||
x124_31_VMD2 = x4_weaponDesc->x10_VMD2;
|
||||
x124_25_APSO = x4_weaponDesc->x28_APSO;
|
||||
|
||||
Reference in New Issue
Block a user