summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actorsprite.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 68b92a1f..7208a91a 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -110,8 +110,15 @@ void ActorSprite::logic()
}
}
+ Map *map = Game::instance() ? Game::instance()->getCurrentMap() : 0;
+ float py = mPos.y;
+ if (map)
+ {
+ py += (float)map->getTileHeight() / 2;
+ }
+
// Update particle effects
- mChildParticleEffects.moveTo(mPos.x, mPos.y);
+ mChildParticleEffects.moveTo(mPos.x, py);
}
void ActorSprite::actorLogic()