mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:07:43 +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:
@@ -6,7 +6,7 @@
|
||||
namespace urde {
|
||||
class CDrawablePlaneObject : public CDrawable {
|
||||
friend class Buckets;
|
||||
u16 x24_targetBucket;
|
||||
u16 x24_targetBucket = 0;
|
||||
float x28_farDist;
|
||||
zeus::CPlane x2c_plane;
|
||||
bool x3c_24_invertTest : 1;
|
||||
@@ -15,10 +15,11 @@ class CDrawablePlaneObject : public CDrawable {
|
||||
public:
|
||||
CDrawablePlaneObject(EDrawableType dtype, float closeDist, float farDist, const zeus::CAABox& aabb, bool invertTest,
|
||||
const zeus::CPlane& plane, bool zOnly, void* data)
|
||||
: CDrawable(dtype, 0, closeDist, aabb, data), x24_targetBucket(0), x28_farDist(farDist), x2c_plane(plane) {
|
||||
x3c_24_invertTest = invertTest;
|
||||
x3c_25_zOnly = zOnly;
|
||||
}
|
||||
: CDrawable(dtype, 0, closeDist, aabb, data)
|
||||
, x28_farDist(farDist)
|
||||
, x2c_plane(plane)
|
||||
, x3c_24_invertTest{invertTest}
|
||||
, x3c_25_zOnly{zOnly} {}
|
||||
const zeus::CPlane& GetPlane() const { return x2c_plane; }
|
||||
};
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user