mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 23:56:25 +00:00
Core/Build: fixed a warning
This commit is contained in:
@@ -74,7 +74,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
|
|||||||
Map* newMap = sMapMgr->CreateMap(loc.GetMapId(), GetPlayer());
|
Map* newMap = sMapMgr->CreateMap(loc.GetMapId(), GetPlayer());
|
||||||
// the CanEnter checks are done in TeleporTo but conditions may change
|
// the CanEnter checks are done in TeleporTo but conditions may change
|
||||||
// while the player is in transit, for example the map may get full
|
// while the player is in transit, for example the map may get full
|
||||||
if (!newMap || !newMap->CanEnter(GetPlayer()))
|
if (!newMap || !newMap->CanEnter(GetPlayer(), false))
|
||||||
{
|
{
|
||||||
sLog->outError("Map %d could not be created for player %d, porting player to homebind", loc.GetMapId(), GetPlayer()->GetGUIDLow());
|
sLog->outError("Map %d could not be created for player %d, porting player to homebind", loc.GetMapId(), GetPlayer()->GetGUIDLow());
|
||||||
GetPlayer()->TeleportTo(GetPlayer()->m_homebindMapId, GetPlayer()->m_homebindX, GetPlayer()->m_homebindY, GetPlayer()->m_homebindZ, GetPlayer()->GetOrientation());
|
GetPlayer()->TeleportTo(GetPlayer()->m_homebindMapId, GetPlayer()->m_homebindX, GetPlayer()->m_homebindY, GetPlayer()->m_homebindZ, GetPlayer()->GetOrientation());
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ class Map : public GridRefManager<NGridType>
|
|||||||
|
|
||||||
uint32 GetInstanceId() const { return i_InstanceId; }
|
uint32 GetInstanceId() const { return i_InstanceId; }
|
||||||
uint8 GetSpawnMode() const { return (i_spawnMode); }
|
uint8 GetSpawnMode() const { return (i_spawnMode); }
|
||||||
virtual bool CanEnter(Player* /*player*/, bool loginCheck = false) { return true; }
|
virtual bool CanEnter(Player* /*player*/, bool /*loginCheck = false*/) { return true; }
|
||||||
const char* GetMapName() const;
|
const char* GetMapName() const;
|
||||||
|
|
||||||
// have meaning only for instanced map (that have set real difficulty)
|
// have meaning only for instanced map (that have set real difficulty)
|
||||||
|
|||||||
Reference in New Issue
Block a user