diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-06 21:09:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-06 21:09:52 +0300 |
commit | 2b6564dcd936825853727fa256e5da7f84f933da (patch) | |
tree | b448165c6710e99434e81942458162bb448f1a89 /src | |
parent | 23dcc6af6b06901088ceac938850e8fa8717e422 (diff) | |
download | manaverse-2b6564dcd936825853727fa256e5da7f84f933da.tar.gz manaverse-2b6564dcd936825853727fa256e5da7f84f933da.tar.bz2 manaverse-2b6564dcd936825853727fa256e5da7f84f933da.tar.xz manaverse-2b6564dcd936825853727fa256e5da7f84f933da.zip |
From horses.xml remove outdated offsets.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/db/horsedb.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index 081a12c6f..0784a1e75 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -131,16 +131,14 @@ void HorseDB::loadXmlFile(const std::string &fileName, if (!currentInfo) continue; - const int offsetX = XML::getProperty(horseNode, "offsetX", 0); - const int offsetY = XML::getProperty(horseNode, "offsetY", 0); currentInfo->upOffsetX = XML::getProperty(horseNode, - "upOffsetX", offsetX); + "upOffsetX", 0); currentInfo->upOffsetY = XML::getProperty(horseNode, - "upOffsetY", offsetY); + "upOffsetY", 0); currentInfo->downOffsetX = XML::getProperty(horseNode, - "downOffsetX", offsetX); + "downOffsetX", 0); currentInfo->downOffsetY = XML::getProperty(horseNode, - "downOffsetY", offsetY); + "downOffsetY", 0); currentInfo->riderOffsetX = XML::getProperty(horseNode, "riderOffsetX", 0); currentInfo->riderOffsetY = XML::getProperty(horseNode, |