mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-03 07:47:47 +00:00
Build/Clang: fixed 96 warnings + improved code readability
This commit is contained in:
@@ -2379,7 +2379,13 @@ class Unit : public WorldObject
|
||||
// pussywizard:
|
||||
// MMaps
|
||||
std::map<uint64, MMapTargetData> m_targetsNotAcceptable;
|
||||
bool isTargetNotAcceptableByMMaps(uint64 guid, uint32 currTime, const Position* t = NULL) const { std::map<uint64, MMapTargetData>::const_iterator itr = m_targetsNotAcceptable.find(guid); if (itr != m_targetsNotAcceptable.end() && (itr->second._endTime >= currTime || t && !itr->second.PosChanged(*this, *t))) return true; return false; }
|
||||
bool isTargetNotAcceptableByMMaps(uint64 guid, uint32 currTime, const Position* t = NULL) const {
|
||||
std::map<uint64, MMapTargetData>::const_iterator itr = m_targetsNotAcceptable.find(guid);
|
||||
if ((itr != m_targetsNotAcceptable.end() && (itr->second._endTime >= currTime)) ||
|
||||
(t && !itr->second.PosChanged(*this, *t)))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
uint32 m_mmapNotAcceptableStartTime;
|
||||
// Safe mover
|
||||
std::set<SafeUnitPointer*> SafeUnitPointerSet;
|
||||
|
||||
Reference in New Issue
Block a user