Core: Some cosmetic changes and minor optimizations

This commit is contained in:
Spp-
2011-08-26 09:41:33 +02:00
parent 4649281536
commit 85164d2876
7 changed files with 21 additions and 39 deletions
+3 -2
View File
@@ -13293,7 +13293,8 @@ float Unit::GetSpellMaxRangeForTarget(Unit* target, SpellInfo const* spellInfo)
if (spellInfo->RangeEntry->maxRangeFriend == spellInfo->RangeEntry->maxRangeHostile)
return spellInfo->GetMaxRange();
return spellInfo->GetMaxRange(!IsHostileTo(target));
};
}
float Unit::GetSpellMinRangeForTarget(Unit* target, SpellInfo const* spellInfo)
{
if (!spellInfo->RangeEntry)
@@ -13301,7 +13302,7 @@ float Unit::GetSpellMinRangeForTarget(Unit* target, SpellInfo const* spellInfo)
if (spellInfo->RangeEntry->minRangeFriend == spellInfo->RangeEntry->minRangeHostile)
return spellInfo->GetMinRange();
return spellInfo->GetMinRange(!IsHostileTo(target));
};
}
Unit* Unit::GetUnit(WorldObject& object, uint64 guid)
{
@@ -20,6 +20,9 @@
#define __TRINITY_VEHICLEDEFINES_H
#include "Define.h"
#include <vector>
#include <map>
struct VehicleSeatEntry;
enum PowerType