ASYLUM: Rename some movement-related Actor methods
This commit is contained in:
parent
3727e9a820
commit
def09b8c20
3 changed files with 32 additions and 32 deletions
|
@ -930,7 +930,7 @@ IMPLEMENT_OPCODE(_unk2C_ActorSub)
|
|||
if (cmd->param1 == 2) {
|
||||
Common::Point point(playerPoint);
|
||||
|
||||
if (player->process_408B20(&point, newDirection, 3, false)) {
|
||||
if (player->canMove(&point, newDirection, 3, false)) {
|
||||
|
||||
point.x += (int16)(3 * deltaPointsArray[newDirection].x);
|
||||
point.y += (int16)(3 * deltaPointsArray[newDirection].y);
|
||||
|
@ -939,7 +939,7 @@ IMPLEMENT_OPCODE(_unk2C_ActorSub)
|
|||
}
|
||||
}
|
||||
|
||||
} else if (cmd->param1 != 2 || player->process_408B20(&playerPoint, newDirection, 3, false)) {
|
||||
} else if (cmd->param1 != 2 || player->canMove(&playerPoint, newDirection, 3, false)) {
|
||||
ResourceId id = kResourceNone;
|
||||
if (direction >= 5)
|
||||
id = actor->getResourcesId((uint32)(5 * cmd->param1 - (direction - 38)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue