mirror of https://github.com/AxioDL/metaforce.git
CFlaahgra: Use std::array in Cover
This commit is contained in:
parent
ab4cf9549a
commit
a3484facf8
|
@ -1178,8 +1178,9 @@ void CFlaahgra::ProjectileAttack(CStateManager& mgr, EStateMsg msg, float) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFlaahgra::Cover(CStateManager& mgr, EStateMsg msg, float) {
|
void CFlaahgra::Cover(CStateManager& mgr, EStateMsg msg, float) {
|
||||||
static pas::ESeverity severities[2]{pas::ESeverity::Eight, pas::ESeverity::Seven};
|
static constexpr std::array severities{pas::ESeverity::Eight, pas::ESeverity::Seven};
|
||||||
if (msg == EStateMsg::Activate) {
|
if (msg == EStateMsg::Activate) {
|
||||||
x77c_ = GetMirrorNearestPlayer(mgr);
|
x77c_ = GetMirrorNearestPlayer(mgr);
|
||||||
x568_ = (x77c_ == kInvalidUniqueId ? 4 : 1);
|
x568_ = (x77c_ == kInvalidUniqueId ? 4 : 1);
|
||||||
|
|
Loading…
Reference in New Issue