diff options
author | megamage <none@none> | 2009-08-29 15:29:14 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-29 15:29:14 -0500 |
commit | 927b96ed90f2c5223256c9ecdf0d5913a93e11b1 (patch) | |
tree | 83264300fd465bcce3ba7d725aa8f9382b85604c /src/game/Map.cpp | |
parent | 2a4c9bcaf910430cdf3070987ce085da3c2666da (diff) |
*Remove some log spams.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
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; |