diff options
author | Andrew Kurushin | 2005-01-07 21:24:26 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-01-07 21:24:26 +0000 |
commit | 12b5c5f85515b3f2f837992f63040373aba167ba (patch) | |
tree | cf1f3dc506d587e76d2782018db068b7dbe41422 /saga/actor.cpp | |
parent | eb76ac619fdb9cccf0e3ba97115894d046a8f563 (diff) | |
download | scummvm-rg350-12b5c5f85515b3f2f837992f63040373aba167ba.tar.gz scummvm-rg350-12b5c5f85515b3f2f837992f63040373aba167ba.tar.bz2 scummvm-rg350-12b5c5f85515b3f2f837992f63040373aba167ba.zip |
fixing scene transition
svn-id: r16480
Diffstat (limited to 'saga/actor.cpp')
-rw-r--r-- | saga/actor.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index e7611ebd8a..3e491ca0d0 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -370,11 +370,11 @@ ActorData *Actor::getActor(uint16 actorId) { } bool Actor::validFollowerLocation(const ActorLocation &location) { - Point point; + Point point; location.toScreenPointXY(point); if ((point.x < 5) || (point.x >= _vm->getDisplayWidth() - 5) || - (point.y < 0) || (point.y >= _vm->getStatusYOffset())) { + (point.y < 0) || (point.y > _vm->getStatusYOffset())) { return false; } @@ -1379,7 +1379,11 @@ void Actor::findActorPath(ActorData *actor, const Point &fromPoint, const Point for (iteratorPoint.y = 0; iteratorPoint.y < _yCellCount; iteratorPoint.y++) { for (iteratorPoint.x = 0; iteratorPoint.x < _xCellCount; iteratorPoint.x++) { - maskType = _vm->_scene->getBGMaskType(iteratorPoint); + if (_vm->_scene->validBGMaskPoint(iteratorPoint)) { + maskType = _vm->_scene->getBGMaskType(iteratorPoint); + } else { + maskType = 1; + } setPathCell(iteratorPoint, maskType ? kPathCellBarrier : kPathCellEmpty); } } |