mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Core/Misc: kill whitespace
# Conflicts: # sql/updates/world/3.3.5/2018_01_10_04_world_335.sql # src/server/game/Combat/ThreatManager.h # src/server/game/Entities/Creature/Creature.cpp # src/server/game/Entities/Player/Player.cpp # src/server/scripts/Kalimdor/boss_azuregos.cpp
This commit is contained in:
@@ -334,7 +334,7 @@ void ThreatManager::AddThreat(Unit* target, float amount, SpellInfo const* spell
|
||||
{
|
||||
float const origAmount = amount;
|
||||
// intentional iteration by index - there's a nested AddThreat call further down that might cause AI calls which might modify redirect info through spells
|
||||
for (size_t i=0; i<redirInfo.size(); ++i)
|
||||
for (size_t i = 0; i < redirInfo.size(); ++i)
|
||||
{
|
||||
auto const pair = redirInfo[i]; // (victim,pct)
|
||||
Unit* redirTarget = nullptr;
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TRINITY_THREATMANAGER_H
|
||||
#define TRINITY_THREATMANAGER_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "IteratorPair.h"
|
||||
#include "ObjectGuid.h"
|
||||
@@ -271,5 +274,5 @@ class TC_GAME_API ThreatReference
|
||||
};
|
||||
|
||||
inline bool CompareThreatLessThan::operator()(ThreatReference const* a, ThreatReference const* b) const { return ThreatManager::CompareReferencesLT(a, b, 1.0f); }
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user