From 23dcc6af6b06901088ceac938850e8fa8717e422 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Aug 2016 17:56:54 +0300 Subject: Add support for player rider offset by x and y. --- src/resources/db/horsedb.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/db/horsedb.cpp') diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index 701bfd2f9..081a12c6f 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -141,6 +141,10 @@ void HorseDB::loadXmlFile(const std::string &fileName, "downOffsetX", offsetX); currentInfo->downOffsetY = XML::getProperty(horseNode, "downOffsetY", offsetY); + currentInfo->riderOffsetX = XML::getProperty(horseNode, + "riderOffsetX", 0); + currentInfo->riderOffsetY = XML::getProperty(horseNode, + "riderOffsetY", 0); for_each_xml_child_node(spriteNode, horseNode) { -- cgit v1.2.3-70-g09d2