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&);
void SetLeadingOrientation(const zeus::CQuaternion& o) { x0_leadingOrientation = o; }
bool CheckLoadComplete() { return true; }
bool CheckLoadComplete() const { return true; }
EReticleState GetDesiredReticleState(const CStateManager&) const;
void Update(float, const CStateManager&);
void UpdateCurrLockOnGroup(float, const CStateManager&);

View File

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

View File

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