CTargetingManager: Mark CheckLoadComplete() as const

This member function doesn't alter internal member state.
This commit is contained in:
Lioncash 2020-05-02 21:56:55 -04:00
parent d3dbe15fcc
commit 748dbb8740
3 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ public:
explicit CCompoundTargetReticle(const CStateManager&); explicit CCompoundTargetReticle(const CStateManager&);
void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; } void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; }
bool CheckLoadComplete() { return true; } bool CheckLoadComplete() const { return true; }
EReticleState GetDesiredReticleState(const CStateManager&) const; EReticleState GetDesiredReticleState(const CStateManager&) const;
void Update(float, const CStateManager&); void Update(float, const CStateManager&);
void UpdateCurrLockOnGroup(float, const CStateManager&); void UpdateCurrLockOnGroup(float, const CStateManager&);

View File

@ -9,8 +9,8 @@ namespace urde {
CTargetingManager::CTargetingManager(const CStateManager& mgr) : x0_targetReticule(mgr) {} CTargetingManager::CTargetingManager(const CStateManager& mgr) : x0_targetReticule(mgr) {}
bool CTargetingManager::CheckLoadComplete() { bool CTargetingManager::CheckLoadComplete() const {
return (x0_targetReticule.CheckLoadComplete() && x21c_orbitPointMarker.CheckLoadComplete()); return x0_targetReticule.CheckLoadComplete() && x21c_orbitPointMarker.CheckLoadComplete();
} }
void CTargetingManager::Update(float dt, const CStateManager& stateMgr) { void CTargetingManager::Update(float dt, const CStateManager& stateMgr) {

View File

@ -11,7 +11,7 @@ class CTargetingManager {
public: public:
explicit CTargetingManager(const CStateManager& stateMgr); explicit CTargetingManager(const CStateManager& stateMgr);
bool CheckLoadComplete(); bool CheckLoadComplete() const;
void Update(float, const CStateManager& stateMgr); void Update(float, const CStateManager& stateMgr);
void Draw(const CStateManager& stateMgr, bool hideLockon); void Draw(const CStateManager& stateMgr, bool hideLockon);
void Touch(); void Touch();