diff options
| author | Nay <dnpd.dd@gmail.com> | 2012-03-28 00:38:04 +0100 |
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2012-03-28 00:38:24 +0100 |
| commit | f44e6834df4278fece0ca9c419b644512de812a6 (patch) | |
| tree | dc16093411aea0655a8919d327d39154a413ea6d /src/server/game/World | |
| parent | 76397cf9311eb89a75d7a71b973c7d480a40b9a7 (diff) | |
Core/DBLayer: Fix remaining errors in loading world tables and a couple of them in characters database
Also removed World::LoadIp2nation(), it was not doing anything.
Closes #5897
Diffstat (limited to 'src/server/game/World')
| -rwxr-xr-x | src/server/game/World/World.cpp | 20 | ||||
| -rwxr-xr-x | src/server/game/World/World.h | 2 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index cb365eefbd6..489278f63e6 100755 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1625,9 +1625,6 @@ void World::SetInitialWorldSettings() sLog->outString("Loading Autobroadcasts..."); LoadAutobroadcasts(); - sLog->outString("Loading Ip2nation..."); - LoadIp2nation(); - ///- Load and initialize scripts sObjectMgr->LoadQuestStartScripts(); // must be after load Creature/Gameobject(Template/Data) and QuestTemplate sObjectMgr->LoadQuestEndScripts(); // must be after load Creature/Gameobject(Template/Data) and QuestTemplate @@ -1884,23 +1881,6 @@ void World::LoadAutobroadcasts() sLog->outString(); } -void World::LoadIp2nation() -{ - uint32 oldMSTime = getMSTime(); - - QueryResult result = WorldDatabase.Query("SELECT count(c.code) FROM ip2nationCountries c, ip2nation i WHERE c.code = i.country"); - uint32 count = 0; - - if (result) - { - Field* fields = result->Fetch(); - count = fields[0].GetUInt32(); - } - - sLog->outString(">> Loaded %u ip2nation definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime)); - sLog->outString(); -} - /// Update the World ! void World::Update(uint32 diff) { diff --git a/src/server/game/World/World.h b/src/server/game/World/World.h index 1247504678a..95e9fbda8ca 100755 --- a/src/server/game/World/World.h +++ b/src/server/game/World/World.h @@ -741,8 +741,6 @@ class World void LoadAutobroadcasts(); - void LoadIp2nation(); - void UpdateAreaDependentAuras(); void ProcessStartEvent(); |
