From 2b6564dcd936825853727fa256e5da7f84f933da Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Aug 2016 21:09:52 +0300 Subject: From horses.xml remove outdated offsets. --- src/resources/db/horsedb.cpp | 10 ++++------ 1 file 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, -- cgit v1.2.3-70-g09d2