summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-05-18 12:02:11 -0600
committerJared Adams <jaxad0127@gmail.com>2011-05-18 12:02:11 -0600
commit49b4ab9f770d776113c80936087687543b942043 (patch)
tree85a9a2e19e8ad2d88b845ecdf2b4bd9cf50c7527 /src
parentae4aea451d6e2c44b273c963026c4fd697568f79 (diff)
downloadmana-client-49b4ab9f770d776113c80936087687543b942043.tar.gz
mana-client-49b4ab9f770d776113c80936087687543b942043.tar.bz2
mana-client-49b4ab9f770d776113c80936087687543b942043.tar.xz
mana-client-49b4ab9f770d776113c80936087687543b942043.zip
Fix detection of ActorSprites under OpenGL
Diffstat (limited to 'src')
-rw-r--r--src/compoundsprite.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 2f39cae6..5f2c00ea 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -281,6 +281,9 @@ void CompoundSprite::redraw() const
// TODO OpenGL support
if (Image::getLoadAsOpenGL())
{
+ mWidth = at(0)->getWidth();
+ mHeight = at(0)->getHeight();
+
// Temporary fix for position
Map *map = Game::instance() ? Game::instance()->getCurrentMap() : 0;
if (map)