Core/Misc: Simplify LinkedListHead::isEmpty and rename to empty to fit standard container naming

This commit is contained in:
Shauren
2025-07-11 17:47:14 +02:00
parent cbb532e4be
commit fbbcc31670
17 changed files with 34 additions and 38 deletions

View File

@@ -811,7 +811,7 @@ void Map::Update(uint32 t_diff)
MoveAllGameObjectsInMoveList();
MoveAllAreaTriggersInMoveList();
if (!m_mapRefManager.isEmpty() || !m_activeNonPlayers.empty())
if (!m_mapRefManager.empty() || !m_activeNonPlayers.empty())
ProcessRelocationNotifies(t_diff);
sScriptMgr->OnMapUpdate(this, t_diff);
@@ -3946,7 +3946,7 @@ void Map::SetZoneMusic(uint32 zoneId, uint32 musicId)
_zoneDynamicInfo[zoneId].MusicId = musicId;
Map::PlayerList const& players = GetPlayers();
if (!players.isEmpty())
if (!players.empty())
{
WorldPackets::Misc::PlayMusic playMusic(musicId);
playMusic.Write();
@@ -3997,7 +3997,7 @@ void Map::SetZoneWeather(uint32 zoneId, WeatherState weatherId, float intensity)
info.Intensity = intensity;
Map::PlayerList const& players = GetPlayers();
if (!players.isEmpty())
if (!players.empty())
{
WorldPackets::Misc::Weather weather(weatherId, intensity);
weather.Write();
@@ -4028,7 +4028,7 @@ void Map::SetZoneOverrideLight(uint32 zoneId, uint32 areaLightId, uint32 overrid
}
Map::PlayerList const& players = GetPlayers();
if (!players.isEmpty())
if (!players.empty())
{
WorldPackets::Misc::OverrideLight overrideLight;
overrideLight.AreaLightID = areaLightId;