[12157] Merge Player::CanUseOutdoorCapturePoint into Player::CanUseCapturePoint

This commit is contained in:
stfx 2012-08-30 12:47:09 +02:00 committed by Antz
parent 97f6703301
commit 328a349a23
6 changed files with 14 additions and 24 deletions

View file

@ -2000,8 +2000,8 @@ void GameObject::TickCapturePoint()
// search for players in radius
std::list<Player*> capturingPlayers;
MaNGOS::AnyPlayerInObjectRangeWithOutdoorPvPCheck u_check(this, radius);
MaNGOS::PlayerListSearcher<MaNGOS::AnyPlayerInObjectRangeWithOutdoorPvPCheck> checker(capturingPlayers, u_check);
MaNGOS::AnyPlayerInCapturePointRange u_check(this, radius);
MaNGOS::PlayerListSearcher<MaNGOS::AnyPlayerInCapturePointRange> checker(capturingPlayers, u_check);
Cell::VisitWorldObjects(this, checker, radius);
GuidSet tempUsers(m_UniqueUsers);