diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-03-20 23:21:59 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-20 18:43:17 -0600 |
commit | a183b3f252915a4bb4c8174504336d2494d8b183 (patch) | |
tree | 71070bf0ecc995d27e2b72a061cfc63d8247a284 | |
parent | 792288922ab403c1912858a992e9347b5928dcea (diff) | |
download | mana-a183b3f252915a4bb4c8174504336d2494d8b183.tar.gz mana-a183b3f252915a4bb4c8174504336d2494d8b183.tar.bz2 mana-a183b3f252915a4bb4c8174504336d2494d8b183.tar.xz mana-a183b3f252915a4bb4c8174504336d2494d8b183.zip |
Fix default offset in monster db for old servers.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
-rw-r--r-- | src/resources/monsterdb.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp index 49e09f9f..adf90bc6 100644 --- a/src/resources/monsterdb.cpp +++ b/src/resources/monsterdb.cpp @@ -29,6 +29,8 @@ #include "utils/gettext.h" #include "utils/xml.h" +#include "net/net.h" + namespace { MonsterDB::MonsterInfos mMonsterInfos; @@ -53,7 +55,8 @@ void MonsterDB::load() logger->error("Monster Database: Error while loading monster.xml!"); } - int offset = XML::getProperty(rootNode, "offset", 0); + int offset = XML::getProperty(rootNode, "offset", + Net::getNetworkType() == ServerInfo::EATHENA ? 1002 : 0); //iterate <monster>s for_each_xml_child_node(monsterNode, rootNode) |