Core/DB: changed some errors to DB errors

--HG--
branch : trunk
This commit is contained in:
Rat
2010-10-30 23:06:05 +02:00
parent c9b6f44e9f
commit c9bbe85e48
+3 -3
View File
@@ -1179,7 +1179,7 @@ bool ObjectMgr::CheckCreatureLinkedRespawn(uint32 guid, uint32 linkedGuid) const
if (!slave || !master) // they must have a corresponding entry in db if (!slave || !master) // they must have a corresponding entry in db
{ {
sLog.outError("LinkedRespawn: Creature '%u' linking to '%u' which doesn't exist",guid,linkedGuid); sLog.outErrorDb("LinkedRespawn: Creature '%u' linking to '%u' which doesn't exist",guid,linkedGuid);
return false; return false;
} }
@@ -1188,14 +1188,14 @@ bool ObjectMgr::CheckCreatureLinkedRespawn(uint32 guid, uint32 linkedGuid) const
if (master->mapid != slave->mapid // link only to same map if (master->mapid != slave->mapid // link only to same map
&& (!map || map->Instanceable())) // or to unistanced world && (!map || map->Instanceable())) // or to unistanced world
{ {
sLog.outError("LinkedRespawn: Creature '%u' linking to '%u' on an unpermitted map",guid,linkedGuid); sLog.outErrorDb("LinkedRespawn: Creature '%u' linking to '%u' on an unpermitted map",guid,linkedGuid);
return false; return false;
} }
if (!(master->spawnMask & slave->spawnMask) // they must have a possibility to meet (normal/heroic difficulty) if (!(master->spawnMask & slave->spawnMask) // they must have a possibility to meet (normal/heroic difficulty)
&& (!map || map->Instanceable())) && (!map || map->Instanceable()))
{ {
sLog.outError("LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask",guid,linkedGuid); sLog.outErrorDb("LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask",guid,linkedGuid);
return false; return false;
} }