CFlaahgra: Use std::array in Cover

This commit is contained in:
Luke Street 2020-08-17 03:04:29 -04:00
parent ab4cf9549a
commit a3484facf8
1 changed files with 2 additions and 1 deletions

View File

@ -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);