summaryrefslogtreecommitdiff
path: root/src/simpleanimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r--src/simpleanimation.cpp5
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;