Fixed bug allowing players to enter instance even if selected difficulty was disabled

Added map id to log when player tries to enter disabled map

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-08-10 19:40:35 +02:00
parent 4f9ec558f4
commit 36d1405b52
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1812,7 +1812,8 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
if ((GetSession()->GetSecurity() < SEC_GAMEMASTER) && sDisableMgr.IsDisabledFor(DISABLE_TYPE_MAP, mapid, this))
{
sLog.outError("Player %s tried to enter a forbidden map", GetName());
sLog.outError("Player %s tried to enter a forbidden map %u", GetName(), mapid);
SendTransferAborted(mapid, TRANSFER_ABORT_MAP_NOT_ALLOWED);
return false;
}