summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-03-20 23:21:59 +0200
committerJared Adams <jaxad0127@gmail.com>2010-03-20 18:43:17 -0600
commita183b3f252915a4bb4c8174504336d2494d8b183 (patch)
tree71070bf0ecc995d27e2b72a061cfc63d8247a284 /src/resources/monsterdb.cpp
parent792288922ab403c1912858a992e9347b5928dcea (diff)
downloadmana-client-a183b3f252915a4bb4c8174504336d2494d8b183.tar.gz
mana-client-a183b3f252915a4bb4c8174504336d2494d8b183.tar.bz2
mana-client-a183b3f252915a4bb4c8174504336d2494d8b183.tar.xz
mana-client-a183b3f252915a4bb4c8174504336d2494d8b183.zip
Fix default offset in monster db for old servers.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r--src/resources/monsterdb.cpp5
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)