mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:47:42 +00:00
RuntimeCommon: Make use of bitfield initializers where applicable
Continues and finishes the migration towards initializing all bitfield members where applicable
This commit is contained in:
@@ -37,16 +37,13 @@ class CLight {
|
||||
u32 x40_lightId = 0; // Serves as unique key
|
||||
mutable float x44_cachedRadius = 0.f;
|
||||
mutable float x48_cachedIntensity = 0.f;
|
||||
mutable bool x4c_24_intensityDirty : 1;
|
||||
mutable bool x4c_25_radiusDirty : 1;
|
||||
mutable bool x4c_24_intensityDirty : 1 = true;
|
||||
mutable bool x4c_25_radiusDirty : 1 = true;
|
||||
|
||||
float CalculateLightRadius() const;
|
||||
|
||||
public:
|
||||
CLight() {
|
||||
x4c_24_intensityDirty = true;
|
||||
x4c_25_radiusDirty = true;
|
||||
}
|
||||
CLight() = default;
|
||||
|
||||
CLight(const zeus::CVector3f& pos, const zeus::CVector3f& dir, const zeus::CColor& color, float distC, float distL,
|
||||
float distQ, float angleC, float angleL, float angleQ);
|
||||
|
||||
Reference in New Issue
Block a user