From d13de51121a332cf8613a38d7ed5468f971c999f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 1 Oct 2013 22:30:44 +0300 Subject: replace tile size from 32 to mapTitleSize. --- src/simpleanimation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/simpleanimation.cpp') diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp index e0623c937..bb120dee7 100644 --- a/src/simpleanimation.cpp +++ b/src/simpleanimation.cpp @@ -23,6 +23,7 @@ #include "simpleanimation.h" #include "logger.h" +#include "map.h" #include "render/graphics.h" @@ -163,8 +164,8 @@ void SimpleAnimation::initializeAnimation(const XmlNodePtr animationNode, if (!imageset) return; - const int x1 = imageset->getWidth() / 2 - 16; - const int y1 = imageset->getHeight() - 32; + const int x1 = imageset->getWidth() / 2 - mapTileSize / 2; + const int y1 = imageset->getHeight() - mapTileSize; // Get animation frames for (XmlNodePtr frameNode = animationNode->xmlChildrenNode; -- cgit v1.2.3-60-g2f50