2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 03:07:44 +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:
Lioncash
2020-04-20 00:57:50 -04:00
parent 2103c38f54
commit 554893ef85
184 changed files with 587 additions and 1117 deletions

View File

@@ -18,7 +18,6 @@ CExplosion::CExplosion(const TLockedToken<CGenDescription>& particle, TUniqueId
: CElementGen::EOptionalSystemFlags::One);
xf0_particleDesc = particle.GetObj();
xf4_24_renderThermalHot = flags & 0x4;
xf4_25_ = true;
xf4_26_renderXray = flags & 0x8;
xe6_27_thermalVisorFlags = flags & 0x1 ? 1 : 2;
xe8_particleGen->SetGlobalTranslation(xf.origin);
@@ -34,7 +33,6 @@ CExplosion::CExplosion(const TLockedToken<CElectricDescription>& electric, TUniq
xe8_particleGen = std::make_unique<CParticleElectric>(electric);
xf0_electricDesc = electric.GetObj();
xf4_24_renderThermalHot = flags & 0x4;
xf4_25_ = true;
xf4_26_renderXray = flags & 0x8;
xe6_27_thermalVisorFlags = flags & 0x1 ? 1 : 2;
xe8_particleGen->SetGlobalTranslation(xf.origin);