mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 13:47:43 +00:00
CPlayerState: Rename HealthInfo() to GetHealthInfo()
Allows const overloading to function and prevents compilation errors from occurring if constness changes through future changes of any sort.
This commit is contained in:
@@ -1049,7 +1049,7 @@ void CPlayer::TakeDamage(bool significant, const zeus::CVector3f& location, floa
|
||||
|
||||
void CPlayer::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
||||
|
||||
CHealthInfo* CPlayer::HealthInfo(CStateManager& mgr) { return &mgr.GetPlayerState()->HealthInfo(); }
|
||||
CHealthInfo* CPlayer::HealthInfo(CStateManager& mgr) { return &mgr.GetPlayerState()->GetHealthInfo(); }
|
||||
|
||||
bool CPlayer::IsUnderBetaMetroidAttack(const CStateManager& mgr) const {
|
||||
if (x274_energyDrain.GetEnergyDrainIntensity() > 0.f) {
|
||||
|
||||
Reference in New Issue
Block a user