diff options
author | maximius <none@none> | 2009-11-22 00:46:38 -0800 |
---|---|---|
committer | maximius <none@none> | 2009-11-22 00:46:38 -0800 |
commit | da5c1bca546028d310bbf12340ca721146dc02f0 (patch) | |
tree | 141914dc48555e4fce0dac2376e78636a7b44968 /src/game/GridNotifiers.h | |
parent | 461e8d134f9ca432349e65d96fb038269fa4127f (diff) |
*Cleanup, fix a few warnings, and make the SD2 grid searchers just pass through to the standard Trinity grid searchers, as they have identical functionality. Thanks thmarth. Closes #387, #388
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.h')
-rw-r--r-- | src/game/GridNotifiers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index 424be2121d2..ed6232b101f 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -1072,12 +1072,12 @@ namespace Trinity class NearestCreatureEntryWithLiveStateInObjectRangeCheck { public: - NearestCreatureEntryWithLiveStateInObjectRangeCheck(WorldObject const& obj,uint32 entry, bool alive, float range) + NearestCreatureEntryWithLiveStateInObjectRangeCheck(WorldObject const& obj, uint32 entry, bool alive, float range) : i_obj(obj), i_entry(entry), i_alive(alive), i_range(range) {} bool operator()(Creature* u) { - if(u->GetEntry() == i_entry && u->isAlive()==i_alive && i_obj.IsWithinDistInMap(u, i_range)) + if (u->GetEntry() == i_entry && u->isAlive() == i_alive && i_obj.IsWithinDistInMap(u, i_range)) { i_range = i_obj.GetDistance(u); // use found unit range as new range limit for next check return true; |