From f1fce0f631578804f1ab76c921b7455d8775dd1c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 25 Mar 2020 02:40:00 -0400 Subject: [PATCH] CCameraSpline: Add names to prototypes More self-documenting from the interface alone. --- Runtime/Camera/CCameraSpline.cpp | 4 ++-- Runtime/Camera/CCameraSpline.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/Camera/CCameraSpline.cpp b/Runtime/Camera/CCameraSpline.cpp index 310056762..471608f65 100644 --- a/Runtime/Camera/CCameraSpline.cpp +++ b/Runtime/Camera/CCameraSpline.cpp @@ -45,8 +45,8 @@ void CCameraSpline::CalculateKnots(TUniqueId cameraId, const std::vector& connections, CStateManager& mgr) { - CalculateKnots(camId, connections, mgr); +void CCameraSpline::Initialize(TUniqueId cameraId, const std::vector& connections, CStateManager& mgr) { + CalculateKnots(cameraId, connections, mgr); x44_length = CalculateSplineLength(); } diff --git a/Runtime/Camera/CCameraSpline.hpp b/Runtime/Camera/CCameraSpline.hpp index 400d063bc..eb2750613 100644 --- a/Runtime/Camera/CCameraSpline.hpp +++ b/Runtime/Camera/CCameraSpline.hpp @@ -20,8 +20,8 @@ class CCameraSpline { public: CCameraSpline(bool closedLoop); - void CalculateKnots(TUniqueId, const std::vector&, CStateManager&); - void Initialize(TUniqueId, const std::vector&, CStateManager&); + void CalculateKnots(TUniqueId cameraId, const std::vector& connections, CStateManager& mgr); + void Initialize(TUniqueId cameraId, const std::vector& connections, CStateManager& mgr); void Reset(int size); void AddKnot(const zeus::CVector3f& pos, const zeus::CVector3f& dir); void SetKnotPosition(int idx, const zeus::CVector3f& pos);