mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 19:07:44 +00:00
CActorModelParticles: Make IsMediumOrLarge() parameter a const reference
Nothing about the parameter is modified.
This commit is contained in:
@@ -18,9 +18,10 @@
|
|||||||
|
|
||||||
namespace urde {
|
namespace urde {
|
||||||
|
|
||||||
static bool IsMediumOrLarge(CActor& act) {
|
static bool IsMediumOrLarge(const CActor& act) {
|
||||||
if (TCastToConstPtr<CPatterned> pat = act)
|
if (const TCastToConstPtr<CPatterned> pat = act) {
|
||||||
return pat->GetKnockBackController().GetVariant() != EKnockBackVariant::Small;
|
return pat->GetKnockBackController().GetVariant() != EKnockBackVariant::Small;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user