2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 02:27:42 +00:00

CKnockBackController: Simplify initialization of x24_ in constructor

Same behavior, less code.
This commit is contained in:
Lioncash
2020-04-17 13:17:01 -04:00
parent 26ac3b166d
commit 5491f3ff23
2 changed files with 2 additions and 5 deletions

View File

@@ -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) {