summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-06 21:09:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-06 21:09:52 +0300
commit2b6564dcd936825853727fa256e5da7f84f933da (patch)
treeb448165c6710e99434e81942458162bb448f1a89
parent23dcc6af6b06901088ceac938850e8fa8717e422 (diff)
downloadmv-2b6564dcd936825853727fa256e5da7f84f933da.tar.gz
mv-2b6564dcd936825853727fa256e5da7f84f933da.tar.bz2
mv-2b6564dcd936825853727fa256e5da7f84f933da.tar.xz
mv-2b6564dcd936825853727fa256e5da7f84f933da.zip
From horses.xml remove outdated offsets.
-rw-r--r--src/resources/db/horsedb.cpp10
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,