MADS: Cleanup of direction setup, fix sprite mirroring for walking

This commit is contained in:
Paul Gilbert 2014-03-28 09:19:55 -04:00
parent 6c85572d76
commit b9daf53bcd
9 changed files with 85 additions and 76 deletions

View file

@ -495,7 +495,7 @@ void SequenceList::setScale(int spriteIdx, int scale) {
void SequenceList::setMsgLayout(int seqIndex) {
Player &player = _vm->_game->_player;
int yp = player._playerPos.y + (player._yScale * player._currentScale) / 100;
int yp = player._playerPos.y + (player._centerOfGravity * player._currentScale) / 100;
setMsgPosition(seqIndex, Common::Point(player._playerPos.x, yp));
setDepth(seqIndex, player._currentDepth);
setScale(seqIndex, player._currentScale);