* Better way to do the check in rev 6697.
00:33:56 | @runningnak3d: Leave a big message in the commit log to along the lines of "runningnak3d didn't know what the f*** he was doing" :) --HG-- branch : trunk
This commit is contained in:
+10
-3
@@ -1575,10 +1575,17 @@ void ObjectMgr::LoadGameobjects()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!gInfo->displayId && (!gInfo->type == GAMEOBJECT_TYPE_TRAP || !gInfo->type == GAMEOBJECT_TYPE_SPELL_FOCUS))
|
if (!gInfo->displayId)
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId);
|
switch (gInfo->type)
|
||||||
continue;
|
{
|
||||||
|
case GAMEOBJECT_TYPE_TRAP:
|
||||||
|
case GAMEOBJECT_TYPE_SPELL_FOCUS:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gInfo->displayId && !sGameObjectDisplayInfoStore.LookupEntry(gInfo->displayId))
|
if (gInfo->displayId && !sGameObjectDisplayInfoStore.LookupEntry(gInfo->displayId))
|
||||||
|
|||||||
Reference in New Issue
Block a user