Core/Scripts: Drop gameobject_scripts table - empty, deprecated and no longer needed
This commit is contained in:
1 parent
59e4f6eb05
commit
9394dc10b4
7 files changed
+2
-46
No files matched your search
@@ -50,7 +50,6 @@
|
||||
#include "World.h"
|
||||
|
||||
ScriptMapMap sSpellScripts;
|
||||
ScriptMapMap sGameObjectScripts;
|
||||
ScriptMapMap sEventScripts;
|
||||
ScriptMapMap sWaypointScripts;
|
||||
|
||||
@@ -60,7 +59,6 @@ std::string GetScriptsTableNameByType(ScriptsType type)
|
||||
switch (type)
|
||||
{
|
||||
case SCRIPTS_SPELL: res = "spell_scripts"; break;
|
||||
case SCRIPTS_GAMEOBJECT: res = "gameobject_scripts"; break;
|
||||
case SCRIPTS_EVENT: res = "event_scripts"; break;
|
||||
case SCRIPTS_WAYPOINT: res = "waypoint_scripts"; break;
|
||||
default: break;
|
||||
@@ -74,7 +72,6 @@ ScriptMapMap* GetScriptsMapByType(ScriptsType type)
|
||||
switch (type)
|
||||
{
|
||||
case SCRIPTS_SPELL: res = &sSpellScripts; break;
|
||||
case SCRIPTS_GAMEOBJECT: res = &sGameObjectScripts; break;
|
||||
case SCRIPTS_EVENT: res = &sEventScripts; break;
|
||||
case SCRIPTS_WAYPOINT: res = &sWaypointScripts; break;
|
||||
default: break;
|
||||
@@ -4667,18 +4664,6 @@ void ObjectMgr::LoadScripts(ScriptsType type)
|
||||
sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u script definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||
}
|
||||
|
||||
void ObjectMgr::LoadGameObjectScripts()
|
||||
{
|
||||
LoadScripts(SCRIPTS_GAMEOBJECT);
|
||||
|
||||
// check ids
|
||||
for (ScriptMapMap::const_iterator itr = sGameObjectScripts.begin(); itr != sGameObjectScripts.end(); ++itr)
|
||||
{
|
||||
if (!GetGOData(itr->first))
|
||||
sLog->outError(LOG_FILTER_SQL, "Table `gameobject_scripts` has not existing gameobject (GUID: %u) as script id", itr->first);
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectMgr::LoadSpellScripts()
|
||||
{
|
||||
LoadScripts(SCRIPTS_SPELL);
|
||||
|
||||
Reference in new issue
Block a user