From 4d69cc1c567180b408ddbadb9edf26859cf4c006 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 21 May 2020 22:15:58 +0200 Subject: Core/Misc: GCC build and warning fixes --- .../Argus/AntorusTheBurningThrone/boss_garothi_worldbreaker.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/server/scripts/Argus') 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(MIN_TARGETS_SIZE, std::ceil(caster->GetMap()->GetPlayersCountExceptGMs() / 5)); + std::max(MIN_TARGETS_SIZE, std::ceil(float(caster->GetMap()->GetPlayersCountExceptGMs()) / 5)); for (uint8 i = 0; i < count; i++) { -- cgit v1.2.3