From 8c640abdd1df5b79f1cce709fb0b970b5bcba892 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Mar 2015 00:40:27 +0300 Subject: Draw riding horse if present. --- src/resources/db/horsedb.cpp | 6 +++--- src/resources/db/horsedb.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/resources/db') diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index 315cd09d0..6da742d3a 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -98,8 +98,8 @@ void HorseDB::loadXmlFile(const std::string &fileName) else currentInfo = new HorseInfo; - currentInfo->offsetX = XML::getProperty(horseNode, "x", 0); - currentInfo->offsetY = XML::getProperty(horseNode, "y", 0); + currentInfo->offsetX = XML::getProperty(horseNode, "offsetX", 0); + currentInfo->offsetY = XML::getProperty(horseNode, "offsetY", 0); for_each_xml_child_node(spriteNode, horseNode) { @@ -134,7 +134,7 @@ void HorseDB::unload() mLoaded = false; } -const HorseInfo *HorseDB::get(const int id, const bool allowNull) +HorseInfo *HorseDB::get(const int id, const bool allowNull) { const HorseInfos::const_iterator i = mHorseInfos.find(id); diff --git a/src/resources/db/horsedb.h b/src/resources/db/horsedb.h index 94809c337..93134a9b1 100644 --- a/src/resources/db/horsedb.h +++ b/src/resources/db/horsedb.h @@ -46,8 +46,8 @@ namespace HorseDB void unload(); - const HorseInfo *get(const int id, - const bool allowNull = false) A_WARN_UNUSED; + HorseInfo *get(const int id, + const bool allowNull = false) A_WARN_UNUSED; int size(); -- cgit v1.2.3-70-g09d2