summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-05-09 03:55:11 -0600
committerJared Adams <jaxad0127@gmail.com>2011-05-17 09:59:05 -0600
commitae4aea451d6e2c44b273c963026c4fd697568f79 (patch)
tree8f909b2c23baf3abb21b1c3987872fb891daa42f /src/resources
parentdbfee8acae48ee1eec46d049656e83e952686ece (diff)
downloadmana-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.gz
mana-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.bz2
mana-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.xz
mana-ae4aea451d6e2c44b273c963026c4fd697568f79.zip
Fix sprite buffering size issues
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/spritedef.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index 51e7ae8e..22312107 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -227,8 +227,6 @@ void SpriteDef::loadAnimation(xmlNodePtr animationNode,
const int delay = XML::getProperty(frameNode, "delay", 0);
int offsetX = XML::getProperty(frameNode, "offsetX", 0);
int offsetY = XML::getProperty(frameNode, "offsetY", 0);
- offsetY -= imageSet->getHeight() - 32;
- offsetX -= imageSet->getWidth() / 2 - 16;
if (xmlStrEqual(frameNode->name, BAD_CAST "frame"))
{