2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 19:47: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

@@ -11,11 +11,11 @@ class CGSComboFire {
s32 x4_loopState = -1; // In, loop, out
s32 x8_cueAnimId = -1;
s32 xc_gunId = -1;
bool x10_24_over : 1;
bool x10_25_idle : 1;
bool x10_24_over : 1 = false;
bool x10_25_idle : 1 = false;
public:
CGSComboFire() : x10_24_over(false), x10_25_idle(false) {}
CGSComboFire() = default;
bool IsComboOver() const { return x10_24_over; }
s32 GetLoopState() const { return x4_loopState; }