diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-04-16 20:50:41 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-04-16 20:50:41 -0600 |
commit | 924760c45e0f1aa1105e192bd83d6a4ce2c80f81 (patch) | |
tree | d37f519b1576de0b62bceb05dbd1625c5ea54f5e /src/resources | |
parent | cf4a1da4eaffe19090a2246e0d3111b885a64ace (diff) | |
download | mana-924760c45e0f1aa1105e192bd83d6a4ce2c80f81.tar.gz mana-924760c45e0f1aa1105e192bd83d6a4ce2c80f81.tar.bz2 mana-924760c45e0f1aa1105e192bd83d6a4ce2c80f81.tar.xz mana-924760c45e0f1aa1105e192bd83d6a4ce2c80f81.zip |
Remove an unneeded monster job offset in eAthena netcode
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/monsterdb.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp index adf90bc6..f9acf1ce 100644 --- a/src/resources/monsterdb.cpp +++ b/src/resources/monsterdb.cpp @@ -31,6 +31,8 @@ #include "net/net.h" +#define OLD_EATHENA_OFFSET 1002 + namespace { MonsterDB::MonsterInfos mMonsterInfos; @@ -55,8 +57,8 @@ void MonsterDB::load() logger->error("Monster Database: Error while loading monster.xml!"); } - int offset = XML::getProperty(rootNode, "offset", - Net::getNetworkType() == ServerInfo::EATHENA ? 1002 : 0); + int offset = XML::getProperty(rootNode, "offset", Net::getNetworkType() == + ServerInfo::EATHENA ? OLD_EATHENA_OFFSET : 0); //iterate <monster>s for_each_xml_child_node(monsterNode, rootNode) |