mirror of https://github.com/AxioDL/metaforce.git
General: Make use of emplace_back where applicable
This commit is contained in:
parent
7b9018dbf0
commit
2f0d774ed8
|
@ -296,11 +296,11 @@ void CCinematicCamera::GenerateMoveOutofIntoPoints(bool outOfEye, CStateManager&
|
||||||
behindDelta = -behindDelta;
|
behindDelta = -behindDelta;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < 2; ++i) {
|
for (int i = 0; i < 2; ++i) {
|
||||||
x188_viewPoints.push_back(behindPos);
|
x188_viewPoints.emplace_back(behindPos);
|
||||||
x198_viewOrientations.push_back(q);
|
x198_viewOrientations.emplace_back(q);
|
||||||
x1a8_viewPointArrivals.push_back(mgr.GetPlayer().GetUniqueId());
|
x1a8_viewPointArrivals.emplace_back(mgr.GetPlayer().GetUniqueId());
|
||||||
x1b8_targets.push_back(eyePos);
|
x1b8_targets.emplace_back(eyePos);
|
||||||
x1c8_targetArrivals.push_back(kInvalidUniqueId);
|
x1c8_targetArrivals.emplace_back(kInvalidUniqueId);
|
||||||
behindPos += behindDelta;
|
behindPos += behindDelta;
|
||||||
}
|
}
|
||||||
CalculateMoveOutofIntoEyePosition(outOfEye, mgr);
|
CalculateMoveOutofIntoEyePosition(outOfEye, mgr);
|
||||||
|
|
|
@ -42,10 +42,10 @@ CBodyStateInfo::CBodyStateInfo(CActor& actor, EBodyType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
x1c_additiveStates.reserve(4);
|
x1c_additiveStates.reserve(4);
|
||||||
x1c_additiveStates.push_back({pas::EAnimationState::AdditiveIdle, std::make_unique<CABSIdle>()});
|
x1c_additiveStates.emplace_back(pas::EAnimationState::AdditiveIdle, std::make_unique<CABSIdle>());
|
||||||
x1c_additiveStates.push_back({pas::EAnimationState::AdditiveAim, std::make_unique<CABSAim>()});
|
x1c_additiveStates.emplace_back(pas::EAnimationState::AdditiveAim, std::make_unique<CABSAim>());
|
||||||
x1c_additiveStates.push_back({pas::EAnimationState::AdditiveFlinch, std::make_unique<CABSFlinch>()});
|
x1c_additiveStates.emplace_back(pas::EAnimationState::AdditiveFlinch, std::make_unique<CABSFlinch>());
|
||||||
x1c_additiveStates.push_back({pas::EAnimationState::AdditiveReaction, std::make_unique<CABSReaction>()});
|
x1c_additiveStates.emplace_back(pas::EAnimationState::AdditiveReaction, std::make_unique<CABSReaction>());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<CBodyState> CBodyStateInfo::SetupRestrictedFlyerBodyStates(int stateId, CActor& actor) const {
|
std::unique_ptr<CBodyState> CBodyStateInfo::SetupRestrictedFlyerBodyStates(int stateId, CActor& actor) const {
|
||||||
|
|
Loading…
Reference in New Issue