2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 20:27:42 +00:00

CScanDisplay: Remove use of const_cast

The draw function is essentially not fully const in behavior, so we can
remove the const qualifiers where necessary.
This commit is contained in:
Lioncash
2020-03-29 21:44:07 -04:00
parent 2d8e94911a
commit 0d3bab4c14
4 changed files with 25 additions and 19 deletions

View File

@@ -45,7 +45,7 @@ public:
public:
explicit CDataDot(const TLockedToken<CTexture>& dataDotTex) : m_quad(EFilterType::Add, dataDotTex) {}
void Update(float dt);
void Draw(const zeus::CColor& color, float radius) const;
void Draw(const zeus::CColor& color, float radius);
float GetTransitionFactor() const { return x1c_transDur > 0.f ? x20_remTime / x1c_transDur : 0.f; }
void StartTransitionTo(const zeus::CVector2f&, float);
void SetDestPosition(const zeus::CVector2f&);
@@ -90,7 +90,7 @@ public:
CGuiWidget* textGroup, CGuiModel* xmark, CGuiModel* abutton, CGuiModel* dash, float scanTime);
void StopScan();
void Update(float dt, float scanningTime);
void Draw() const;
void Draw();
EScanState GetScanState() const { return xc_state; }
TUniqueId ScanTarget() const { return x10_objId; }
};