mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:23:47 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user