diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/db/horsedb.cpp | 12 | ||||
-rw-r--r-- | src/resources/horseinfo.h | 4 | ||||
-rw-r--r-- | src/resources/map/maplayer.cpp | 7 |
3 files changed, 15 insertions, 8 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp index db8aa7dc3..f4c5bf8c0 100644 --- a/src/resources/db/horsedb.cpp +++ b/src/resources/db/horsedb.cpp @@ -131,10 +131,14 @@ void HorseDB::loadXmlFile(const std::string &fileName) continue; const int offsetX = XML::getProperty(horseNode, "offsetX", 0); const int offsetY = XML::getProperty(horseNode, "offsetY", 0); - currentInfo->upOffsetX = XML::getProperty(horseNode, "upOffsetX", offsetX); - currentInfo->upOffsetY = XML::getProperty(horseNode, "upOffsetY", offsetY); - currentInfo->downOffsetX = XML::getProperty(horseNode, "downOffsetX", offsetX); - currentInfo->downOffsetY = XML::getProperty(horseNode, "downOffsetY", offsetY); + currentInfo->upOffsetX = XML::getProperty(horseNode, + "upOffsetX", offsetX); + currentInfo->upOffsetY = XML::getProperty(horseNode, + "upOffsetY", offsetY); + currentInfo->downOffsetX = XML::getProperty(horseNode, + "downOffsetX", offsetX); + currentInfo->downOffsetY = XML::getProperty(horseNode, + "downOffsetY", offsetY); for_each_xml_child_node(spriteNode, horseNode) { diff --git a/src/resources/horseinfo.h b/src/resources/horseinfo.h index 8a96902d8..11cca4c8f 100644 --- a/src/resources/horseinfo.h +++ b/src/resources/horseinfo.h @@ -24,13 +24,13 @@ #include "resources/spritereference.h" -#include <vector> - #include "localconsts.h" struct HorseInfo final { HorseInfo() : + downSprites(), + upSprites(), downOffsetX(0), downOffsetY(0), upOffsetX(0), diff --git a/src/resources/map/maplayer.cpp b/src/resources/map/maplayer.cpp index 23e347483..89629ea65 100644 --- a/src/resources/map/maplayer.cpp +++ b/src/resources/map/maplayer.cpp @@ -597,7 +597,9 @@ void MapLayer::drawFringe(Graphics *const graphics, { int width = 0; // here need not draw over player position - const int c = getTileDrawWidth(tilePtr, endX - x, width); + const int c = getTileDrawWidth(tilePtr, + endX - x, + width); if (!c) { @@ -710,7 +712,8 @@ void MapLayer::updateConditionTiles(MetaTile *const metaTiles, for (int x = mX; x < width1; x ++, metaPtr ++, tilePtr ++) { if (metaPtr->blockmask & mTileCondition || - (metaPtr->blockmask == 0 && mTileCondition == BlockMask::GROUND)) + (metaPtr->blockmask == 0 && + mTileCondition == BlockMask::GROUND)) { tilePtr->isEnabled = true; } |