diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-13 21:57:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-13 21:57:12 +0300 |
commit | db1d3323103f15c3d31378b9e94982191855d984 (patch) | |
tree | 85c0aa4c738fceb135d5fe954a7512d22fff1c9f /src/client.cpp | |
parent | 331d1d0989acccf5247d34561d0c962f7a64adc2 (diff) | |
download | manaplus-db1d3323103f15c3d31378b9e94982191855d984.tar.gz manaplus-db1d3323103f15c3d31378b9e94982191855d984.tar.bz2 manaplus-db1d3323103f15c3d31378b9e94982191855d984.tar.xz manaplus-db1d3323103f15c3d31378b9e94982191855d984.zip |
Add fake packets from network.xml if packet unused.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
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(); |