summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-16 18:19:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-16 18:19:54 +0300
commit0e51a58811c3d6e6a08dd66a2c2ab33481b27cde (patch)
tree5f2bab242d73fd04e7af1c44d5c88bcc5da3dbfd
parentf56688822567dee10bf1219fac33570369e68b33 (diff)
downloadplus-0e51a58811c3d6e6a08dd66a2c2ab33481b27cde.tar.gz
plus-0e51a58811c3d6e6a08dd66a2c2ab33481b27cde.tar.bz2
plus-0e51a58811c3d6e6a08dd66a2c2ab33481b27cde.tar.xz
plus-0e51a58811c3d6e6a08dd66a2c2ab33481b27cde.zip
Fix in spritedef after last changes.
-rw-r--r--src/resources/spritedef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index a0d2362b7..cc47e34c0 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -282,9 +282,9 @@ void SpriteDef::loadAnimation(const XmlNodePtr animationNode,
const int delay = XML::getIntProperty(
frameNode, "delay", 0, 0, 100000);
const int offsetX = XML::getProperty(frameNode, "offsetX", 0) +
- imageSet->getOffsetX() - imageSet->getHeight() + 32;
+ imageSet->getOffsetX() - imageSet->getWidth() / 2 + 16;
const int offsetY = XML::getProperty(frameNode, "offsetY", 0) +
- imageSet->getOffsetY() - imageSet->getWidth() / 2 + 16;
+ imageSet->getOffsetY() - imageSet->getHeight() + 32;
const int rand = XML::getIntProperty(frameNode, "rand", 100, 0, 100);
if (xmlNameEqual(frameNode, "frame"))