refactor(Core/Misc): isEmpty to IsEmpty (#10011)

This commit is contained in:
Kitzunu
2022-01-14 03:43:15 +01:00
committed by GitHub
parent e36ee257c7
commit d1cc65b1c7
50 changed files with 94 additions and 94 deletions

View File

@@ -181,7 +181,7 @@ public:
// check if all players saved her.
Map::PlayerList const& lPlayers = instance->GetPlayers();
if (!lPlayers.isEmpty())
if (!lPlayers.IsEmpty())
{
for (Map::PlayerList::const_iterator itr = lPlayers.begin(); itr != lPlayers.end(); ++itr)
{

View File

@@ -309,7 +309,7 @@ public:
return;
Map::PlayerList const& PlayerList = map->GetPlayers();
if (PlayerList.isEmpty())
if (PlayerList.IsEmpty())
return;
RaidWiped = true;

View File

@@ -432,7 +432,7 @@ public:
void SendUpdateWorldState(uint32 id, uint32 state)
{
Map::PlayerList const& players = me->GetMap()->GetPlayers();
if (!players.isEmpty())
if (!players.IsEmpty())
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
if (Player* player = itr->GetSource())
if (player->GetPhaseMask() & 128) // Xinef: client skips players without chapter 5 aura anyway, speedup
@@ -1125,7 +1125,7 @@ public:
case EVENT_OUTRO_SCENE_60:
{
Map::PlayerList const& PlayerList = me->GetMap()->GetPlayers();
if (!PlayerList.isEmpty())
if (!PlayerList.IsEmpty())
{
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if (i->GetSource()->IsAlive() && me->IsWithinDistInMap(i->GetSource(), 100))

View File

@@ -508,7 +508,7 @@ public:
case EVENT_FORCE_SLAUGHTER_EVENT:
{
Map::PlayerList const& PlayerList = instance->GetPlayers();
if (!PlayerList.isEmpty())
if (!PlayerList.IsEmpty())
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if (Player* player = i->GetSource())
if (player->GetDistance2d(4034.97f, -3402.13f) < 50.0f)

View File

@@ -56,7 +56,7 @@ public:
{
Map::PlayerList const& players = instance->GetPlayers();
if (!players.isEmpty())
if (!players.IsEmpty())
{
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
{

View File

@@ -186,7 +186,7 @@ public:
return;
Map::PlayerList const& PlayerList = instance->GetPlayers();
if (PlayerList.isEmpty())
if (PlayerList.IsEmpty())
return;
Map::PlayerList::const_iterator i = PlayerList.begin();

View File

@@ -1146,7 +1146,7 @@ public:
{
Map::PlayerList const& players = map->GetPlayers();
if (!players.isEmpty())
if (!players.IsEmpty())
{
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
{
@@ -2534,7 +2534,7 @@ public:
{
Map::PlayerList const& players = map->GetPlayers();
if (!players.isEmpty())
if (!players.IsEmpty())
{
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
{