Cleanup Camera related code and uses constant references where possible.

Commented By: elexis
Differential Revision: https://code.wildfiregames.com/D2350
This was SVN commit r23033.
This commit is contained in:
vladislavbelov
2019-10-03 12:58:47 +00:00
parent 7f38bef8e1
commit a19b14aeb7
9 changed files with 23 additions and 33 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ CCameraController::CCameraController(CCamera& camera)
m_Camera.UpdateFrustum();
}
void CCameraController::Initialize()
void CCameraController::LoadConfig()
{
CFG_GET_VAL("view.scroll.speed", m_ViewScrollSpeed);
CFG_GET_VAL("view.scroll.speed.modifier", m_ViewScrollSpeedModifier);
@@ -516,7 +516,7 @@ void CCameraController::ResetCameraTarget(const CVector3D& target)
m_FollowEntity = INVALID_ENTITY;
}
void CCameraController::CameraFollow(entity_id_t entity, bool firstPerson)
void CCameraController::FollowEntity(entity_id_t entity, bool firstPerson)
{
m_FollowEntity = entity;
m_FollowFirstPerson = firstPerson;