aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gnap/scenes')
-rw-r--r--engines/gnap/scenes/group0.cpp4
-rw-r--r--engines/gnap/scenes/group1.cpp6
2 files changed, 4 insertions, 6 deletions
diff --git a/engines/gnap/scenes/group0.cpp b/engines/gnap/scenes/group0.cpp
index 1b82faccfb..c7792af531 100644
--- a/engines/gnap/scenes/group0.cpp
+++ b/engines/gnap/scenes/group0.cpp
@@ -508,7 +508,7 @@ void Scene02::run() {
if (gnap._actionStatus < 0) {
if (_vm->_grabCursorSpriteIndex == kItemTwig) {
gnap._idleFacing = kDirUpRight;
- Common::Point destPos = Common::Point(_vm->_hotspotsWalkPos[_vm->_sceneClickedHotspot].x, _vm->_hotspotsWalkPos[_vm->_sceneClickedHotspot].y + 1);
+ Common::Point destPos = _vm->_hotspotsWalkPos[_vm->_sceneClickedHotspot] + Common::Point(0, 1);
gnap.walkTo(destPos, 0, gnap.getSequenceId(kGSIdle, Common::Point(0, 0)) | 0x10000, 1);
gnap._actionStatus = kAS02UseTwigWithChicken;
} else if (_vm->_grabCursorSpriteIndex >= 0) {
@@ -1967,7 +1967,7 @@ void Scene05::run() {
} else {
switch (_vm->_verbCursor) {
case LOOK_CURSOR:
- gnap.playScratchingHead(Common::Point(_vm->_hotspotsWalkPos[1].x, _vm->_hotspotsWalkPos[1].y - 1));
+ gnap.playScratchingHead(_vm->_hotspotsWalkPos[1] + Common::Point(0, -1));
break;
case GRAB_CURSOR:
case TALK_CURSOR:
diff --git a/engines/gnap/scenes/group1.cpp b/engines/gnap/scenes/group1.cpp
index 7aa5d9efdd..f785c443f1 100644
--- a/engines/gnap/scenes/group1.cpp
+++ b/engines/gnap/scenes/group1.cpp
@@ -3147,8 +3147,7 @@ void Scene18::updateHotspots() {
_vm->_hotspots[kHS18HydrantRightValve]._rect.left = 148;
_vm->_hotspots[kHS18HydrantRightValve]._rect.top = 403;
_vm->_hotspots[kHS18GarbageCan]._flags = SF_DISABLED;
- _vm->_hotspotsWalkPos[kHS18GarbageCan].x = 3;
- _vm->_hotspotsWalkPos[kHS18GarbageCan].y = 7;
+ _vm->_hotspotsWalkPos[kHS18GarbageCan] = Common::Point(3, 7);
} else {
_vm->_hotspots[kHS18HydrantTopValve]._rect.top = 246;
}
@@ -3159,8 +3158,7 @@ void Scene18::updateHotspots() {
} else if (_vm->isFlag(kGFTruckKeysUsed)) {
_vm->_hotspots[kHS18GarbageCan]._rect = Common::Rect(115, 365, 168, 470);
_vm->_hotspots[kHS18GarbageCan]._flags = SF_WALKABLE | SF_TALK_CURSOR | SF_GRAB_CURSOR | SF_LOOK_CURSOR;
- _vm->_hotspotsWalkPos[kHS18GarbageCan].x = 3;
- _vm->_hotspotsWalkPos[kHS18GarbageCan].y = 7;
+ _vm->_hotspotsWalkPos[kHS18GarbageCan] = Common::Point(3, 7);
}
if (_vm->isFlag(kGFPlatypusDisguised))
_vm->_hotspots[kHS18GarbageCan]._flags = SF_DISABLED;