diff options
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 2f4573c7ee0..4aa8e3b7304 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -77,7 +77,6 @@ ScriptMapMap sSpellScripts; ScriptMapMap sEventScripts; -ScriptMapMap sWaypointScripts; std::string GetScriptsTableNameByType(ScriptsType type) { @@ -86,7 +85,6 @@ std::string GetScriptsTableNameByType(ScriptsType type) { case SCRIPTS_SPELL: res = "spell_scripts"; break; case SCRIPTS_EVENT: res = "event_scripts"; break; - case SCRIPTS_WAYPOINT: res = "waypoint_scripts"; break; default: break; } return res; @@ -99,7 +97,6 @@ ScriptMapMap* GetScriptsMapByType(ScriptsType type) { case SCRIPTS_SPELL: res = &sSpellScripts; break; case SCRIPTS_EVENT: res = &sEventScripts; break; - case SCRIPTS_WAYPOINT: res = &sWaypointScripts; break; default: break; } return res; @@ -5962,35 +5959,6 @@ void ObjectMgr::LoadEventScripts() TC_LOG_INFO("server.loading", ">> Loaded {} event scripts in {} ms", _eventScriptStore.size(), GetMSTimeDiffToNow(oldMSTime)); } -//Load WP Scripts -void ObjectMgr::LoadWaypointScripts() -{ - LoadScripts(SCRIPTS_WAYPOINT); - - std::set<uint32> actionSet; - - for (ScriptMapMap::const_iterator itr = sWaypointScripts.begin(); itr != sWaypointScripts.end(); ++itr) - actionSet.insert(itr->first); - - WorldDatabasePreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_DATA_ACTION); - PreparedQueryResult result = WorldDatabase.Query(stmt); - - if (result) - { - do - { - Field* fields = result->Fetch(); - uint32 action = fields[0].GetUInt32(); - - actionSet.erase(action); - } - while (result->NextRow()); - } - - for (std::set<uint32>::iterator itr = actionSet.begin(); itr != actionSet.end(); ++itr) - TC_LOG_ERROR("sql.sql", "There is no waypoint which links to the waypoint script {}", *itr); -} - void ObjectMgr::LoadSpellScriptNames() { uint32 oldMSTime = getMSTime(); |