2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 21:47:59 +00:00

General: Make use of emplace_back where applicable

This commit is contained in:
Lioncash
2020-03-31 05:32:06 -04:00
parent 7b9018dbf0
commit 2f0d774ed8
2 changed files with 9 additions and 9 deletions

View File

@@ -296,11 +296,11 @@ void CCinematicCamera::GenerateMoveOutofIntoPoints(bool outOfEye, CStateManager&
behindDelta = -behindDelta;
}
for (int i = 0; i < 2; ++i) {
x188_viewPoints.push_back(behindPos);
x198_viewOrientations.push_back(q);
x1a8_viewPointArrivals.push_back(mgr.GetPlayer().GetUniqueId());
x1b8_targets.push_back(eyePos);
x1c8_targetArrivals.push_back(kInvalidUniqueId);
x188_viewPoints.emplace_back(behindPos);
x198_viewOrientations.emplace_back(q);
x1a8_viewPointArrivals.emplace_back(mgr.GetPlayer().GetUniqueId());
x1b8_targets.emplace_back(eyePos);
x1c8_targetArrivals.emplace_back(kInvalidUniqueId);
behindPos += behindDelta;
}
CalculateMoveOutofIntoEyePosition(outOfEye, mgr);