diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
commit | d13de51121a332cf8613a38d7ed5468f971c999f (patch) | |
tree | 253c2911e291303fd90eb5d61c23076630782a11 /src/simpleanimation.cpp | |
parent | 6915c38ca9c35bfb9a5ea05fe957463d644a75de (diff) | |
download | manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.gz manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.bz2 manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.xz manaverse-d13de51121a332cf8613a38d7ed5468f971c999f.zip |
replace tile size from 32 to mapTitleSize.
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r-- | src/simpleanimation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; |