From 927b96ed90f2c5223256c9ecdf0d5913a93e11b1 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 29 Aug 2009 15:29:14 -0500 Subject: *Remove some log spams. --HG-- branch : trunk --- src/game/Map.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 40bdf02671e..e9833c2f611 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1096,14 +1096,15 @@ void Map::RemoveAllPlayers() { if(HavePlayers()) { - // this is happening for bg - sLog.outError("Map::UnloadAll: there are still players in the instance at unload, should not happen!"); - for(MapRefManager::iterator itr = m_mapRefManager.begin(); itr != m_mapRefManager.end(); ++itr) { Player* plr = itr->getSource(); if(!plr->IsBeingTeleportedFar()) + { + // this is happening for bg + sLog.outError("Map::UnloadAll: player %s is still in map %u during unload, should not happen!", plr->GetName(), GetId()); plr->TeleportTo(plr->m_homebindMapId, plr->m_homebindX, plr->m_homebindY, plr->m_homebindZ, plr->GetOrientation()); + } } } } @@ -3328,13 +3329,7 @@ void Map::ScriptsProcess() Object* cmdTarget = step.script->datalong2 & 0x01 ? source : target; - if(!cmdTarget) - { - sLog.outError("SCRIPT_COMMAND_CAST_SPELL %u call for NULL %s.", step.script->datalong, step.script->datalong2 & 0x01 ? "source" : "target"); - break; - } - - if(!cmdTarget->isType(TYPEMASK_UNIT)) + if(cmdTarget && !cmdTarget->isType(TYPEMASK_UNIT)) { sLog.outError("SCRIPT_COMMAND_CAST_SPELL %s isn't unit (TypeId: %u), skipping.",step.script->datalong2 & 0x01 ? "source" : "target",cmdTarget->GetTypeId()); break; -- cgit v1.2.3