mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
[12157] Merge Player::CanUseOutdoorCapturePoint into Player::CanUseCapturePoint
This commit is contained in:
parent
97f6703301
commit
328a349a23
6 changed files with 14 additions and 24 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue