mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Actually that should be before all code
svn-id: r20595
This commit is contained in:
parent
86ee0df205
commit
2873ae8186
@ -1575,6 +1575,11 @@ void Actor::setActorCostume(int c) {
|
||||
void Actor::startWalkActor(int destX, int destY, int dir) {
|
||||
AdjustBoxResult abr;
|
||||
|
||||
if (!isInCurrentRoom() && _vm->_version >= 7) {
|
||||
debug(0, "startWalkActor: attempting to walk actor %d who is not in this room", _number);
|
||||
return;
|
||||
}
|
||||
|
||||
if (_vm->_version <= 3) {
|
||||
abr.x = destX;
|
||||
abr.y = destY;
|
||||
@ -1582,15 +1587,11 @@ void Actor::startWalkActor(int destX, int destY, int dir) {
|
||||
abr = adjustXYToBeInBox(destX, destY);
|
||||
}
|
||||
|
||||
if (!isInCurrentRoom()) {
|
||||
if (_vm->_version <= 6) {
|
||||
_pos.x = abr.x;
|
||||
_pos.y = abr.y;
|
||||
if (_ignoreTurns == false && dir != -1)
|
||||
_facing = dir;
|
||||
} else {
|
||||
debug(0, "startWalkActor: attempting to walk actor %d who is not in this room", _number);
|
||||
}
|
||||
if (!isInCurrentRoom() && _vm->_version <= 6) {
|
||||
_pos.x = abr.x;
|
||||
_pos.y = abr.y;
|
||||
if (_ignoreTurns == false && dir != -1)
|
||||
_facing = dir;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user