summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-13 21:57:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-13 21:57:12 +0300
commitdb1d3323103f15c3d31378b9e94982191855d984 (patch)
tree85c0aa4c738fceb135d5fe954a7512d22fff1c9f /src/client.cpp
parent331d1d0989acccf5247d34561d0c962f7a64adc2 (diff)
downloadmv-db1d3323103f15c3d31378b9e94982191855d984.tar.gz
mv-db1d3323103f15c3d31378b9e94982191855d984.tar.bz2
mv-db1d3323103f15c3d31378b9e94982191855d984.tar.xz
mv-db1d3323103f15c3d31378b9e94982191855d984.zip
Add fake packets from network.xml if packet unused.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 9ac6c0df5..64297d599 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -616,6 +616,7 @@ void Client::gameClear()
ElementalDb::unload();
SkillUnitDb::unload();
HorseDB::unload();
+ NetworkDb::unload();
}
MonsterDB::unload();
NPCDB::unload();
@@ -627,7 +628,6 @@ void Client::gameClear()
PETDB::unload();
StatusEffectDB::unload();
ModDB::unload();
- NetworkDb::unload();
if (loginHandler)
loginHandler->clearWorlds();
@@ -1327,7 +1327,6 @@ int Client::gameExec()
AttributesEnum::init();
// Load XML databases
- NetworkDb::load();
CharDB::load();
StatDb::load();
DeadDB::load();
@@ -1342,6 +1341,9 @@ int Client::gameExec()
if (type == ServerType::EATHENA ||
type == ServerType::EVOL2)
{
+ NetworkDb::load();
+ if (loginHandler)
+ loginHandler->updatePacketVersion();
MercenaryDB::load();
HomunculusDB::load();
ElementalDb::load();