mirror of https://github.com/AxioDL/metaforce.git
CKnockBackController: Simplify initialization of x24_ in constructor
Same behavior, less code.
This commit is contained in:
parent
26ac3b166d
commit
5491f3ff23
|
@ -372,10 +372,7 @@ CKnockBackController::CKnockBackController(EKnockBackVariant variant)
|
|||
, x82_24_(true)
|
||||
, x82_25_inDeferredKnockBack(false)
|
||||
, x82_26_locomotionDuringElectrocution(false) {
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
x24_.push_back(std::make_pair(0.f, FLT_MAX));
|
||||
x80_availableStates.set(i);
|
||||
}
|
||||
x24_.resize(x24_.capacity(), std::make_pair(0.0f, FLT_MAX));
|
||||
}
|
||||
|
||||
void CKnockBackController::ApplyImpulse(float dt, CPatterned& parent) {
|
||||
|
|
|
@ -85,7 +85,7 @@ private:
|
|||
u32 x70_ = 0;
|
||||
u32 x74_ = 0;
|
||||
pas::ESeverity x7c_severity = pas::ESeverity::One;
|
||||
std::bitset<5> x80_availableStates;
|
||||
std::bitset<5> x80_availableStates{0b11111};
|
||||
bool x81_24_autoResetImpulse : 1; // t
|
||||
bool x81_25_enableFreeze : 1; // t
|
||||
bool x81_26_enableShock : 1;
|
||||
|
|
Loading…
Reference in New Issue