diff options
| author | Shauren <shauren.trinity@gmail.com> | 2020-05-21 22:15:58 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2020-05-21 22:15:58 +0200 |
| commit | 4d69cc1c567180b408ddbadb9edf26859cf4c006 (patch) | |
| tree | a40d455e3b460861541f1d1d3f44943d07b9fbd1 /src/server/scripts/Argus | |
| parent | 92a289e45518e6a4c3a34fed6d28f09002e53352 (diff) | |
Core/Misc: GCC build and warning fixes
Diffstat (limited to 'src/server/scripts/Argus')
| -rw-r--r-- | src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp index bc96be615eb..d14fa3065e1 100644 --- a/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp +++ b/src/server/scripts/Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp @@ -116,11 +116,8 @@ enum AnimKits ANIM_KIT_ID_CANNON_DESTROYED = 13264 }; -enum TargetSize : uint8 -{ - MIN_TARGETS_SIZE = 2, - MAX_TARGETS_SIZE = 6 -}; +constexpr uint8 MIN_TARGETS_SIZE = 2; +constexpr uint8 MAX_TARGETS_SIZE = 6; enum Misc { @@ -866,7 +863,7 @@ class spell_garothi_cannon_chooser : public SpellScript else if ((lastCannonEntry == NPC_DECIMATOR && annihilator) || (annihilator && !decimator)) { uint8 count = caster->GetMap()->GetDifficultyID() == DIFFICULTY_MYTHIC_RAID ? MAX_TARGETS_SIZE : - std::max<uint8>(MIN_TARGETS_SIZE, std::ceil(caster->GetMap()->GetPlayersCountExceptGMs() / 5)); + std::max<uint8>(MIN_TARGETS_SIZE, std::ceil(float(caster->GetMap()->GetPlayersCountExceptGMs()) / 5)); for (uint8 i = 0; i < count; i++) { |
