mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
CBodyController: Make HasBodyInfo() accept a const reference
This only queries state and doesn't actually modify it.
This commit is contained in:
@@ -142,8 +142,8 @@ void CBodyController::FaceDirection3D(const zeus::CVector3f& v0, const zeus::CVe
|
||||
}
|
||||
}
|
||||
|
||||
bool CBodyController::HasBodyInfo(CActor& act) {
|
||||
return act.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase().GetNumAnimStates() != 0;
|
||||
bool CBodyController::HasBodyInfo(const CActor& actor) {
|
||||
return actor.GetModelData()->GetAnimationData()->GetCharacterInfo().GetPASDatabase().GetNumAnimStates() != 0;
|
||||
}
|
||||
|
||||
void CBodyController::PlayBestAnimation(const CPASAnimParmData& parms, CRandom16& r) {
|
||||
|
||||
Reference in New Issue
Block a user