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

CBodyState: Make references const where applicable

The referenced objects aren't modified
This commit is contained in:
Lioncash
2020-05-25 22:20:02 -04:00
parent 8690f4ef3e
commit fecfb14f35
2 changed files with 4 additions and 4 deletions

View File

@@ -1173,7 +1173,7 @@ void CBSHurled::PlayLandAnimation(CBodyController& bc, CStateManager& mgr) {
}
}
bool CBSHurled::ShouldStartStrikeWall(CBodyController& bc) const {
bool CBSHurled::ShouldStartStrikeWall(const CBodyController& bc) const {
if (const TCastToConstPtr<CPatterned> ai = bc.GetOwner()) {
if (ai->MadeSolidCollision()) {
if (!ai->IsOnGround()) {
@@ -1184,7 +1184,7 @@ bool CBSHurled::ShouldStartStrikeWall(CBodyController& bc) const {
return false;
}
bool CBSHurled::ShouldStartLand(float dt, CBodyController& bc) const {
bool CBSHurled::ShouldStartLand(float dt, const CBodyController& bc) const {
bool ret = true;
if (const TCastToConstPtr<CPatterned> ai = bc.GetOwner()) {
ret = false;