mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 04:42:10 +01:00
remove an unused variable (follow-up fcd6fe0)
This commit is contained in:
@@ -648,13 +648,10 @@ public:
|
|||||||
static bool HandleListSpawnPointsCommand(ChatHandler* handler, char const* /*args*/)
|
static bool HandleListSpawnPointsCommand(ChatHandler* handler, char const* /*args*/)
|
||||||
{
|
{
|
||||||
Player const* player = handler->GetSession()->GetPlayer();
|
Player const* player = handler->GetSession()->GetPlayer();
|
||||||
if (!player)
|
Map const* map = player->FindMap();
|
||||||
return false;
|
|
||||||
Map const* map = player->GetMap();
|
|
||||||
if (!map)
|
if (!map)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
LocaleConstant const locale = handler->GetSession()->GetSessionDbcLocale();
|
|
||||||
uint32 const mapId = map->GetId();
|
uint32 const mapId = map->GetId();
|
||||||
bool const showAll = map->IsBattlegroundOrArena() || map->IsDungeon();
|
bool const showAll = map->IsBattlegroundOrArena() || map->IsDungeon();
|
||||||
handler->PSendSysMessage("Listing all spawn points in map %u (%s)%s:", mapId, map->GetMapName(), showAll ? "" : " within 5000yd");
|
handler->PSendSysMessage("Listing all spawn points in map %u (%s)%s:", mapId, map->GetMapName(), showAll ? "" : " within 5000yd");
|
||||||
@@ -692,10 +689,8 @@ public:
|
|||||||
{
|
{
|
||||||
// We need a player
|
// We need a player
|
||||||
Player const* player = handler->GetSession()->GetPlayer();
|
Player const* player = handler->GetSession()->GetPlayer();
|
||||||
if (!player)
|
|
||||||
return false;
|
|
||||||
// And we need a map
|
// And we need a map
|
||||||
Map const* map = player->GetMap();
|
Map const* map = player->FindMap();
|
||||||
if (!map)
|
if (!map)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user