diff options
author | Strangerke | 2016-05-12 20:33:51 +0200 |
---|---|---|
committer | Strangerke | 2016-05-12 20:33:51 +0200 |
commit | 55162fb7ca2accfee74a6eb57cadfbf57962c161 (patch) | |
tree | 314269a9407fb05131132d3689f8e7a411d7889e /engines/gnap/scenes/group1.cpp | |
parent | 9c0808237c3c4cb8a93a31cad8bf939396415fd1 (diff) | |
download | scummvm-rg350-55162fb7ca2accfee74a6eb57cadfbf57962c161.tar.gz scummvm-rg350-55162fb7ca2accfee74a6eb57cadfbf57962c161.tar.bz2 scummvm-rg350-55162fb7ca2accfee74a6eb57cadfbf57962c161.zip |
GNAP: Simplify some calls of _hotspotWalkPos
Diffstat (limited to 'engines/gnap/scenes/group1.cpp')
-rw-r--r-- | engines/gnap/scenes/group1.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; |