aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorwhiterandrek2018-06-11 23:31:29 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commita37a7895dbfc3d71307e4e25c883a9eb1929e928 (patch)
tree9af718f35b4a8317cd15b461637e05b8a75c6c64 /engines/pink
parent471840514f148a1730dd7a7c281a062bcab5eeed (diff)
downloadscummvm-rg350-a37a7895dbfc3d71307e4e25c883a9eb1929e928.tar.gz
scummvm-rg350-a37a7895dbfc3d71307e4e25c883a9eb1929e928.tar.bz2
scummvm-rg350-a37a7895dbfc3d71307e4e25c883a9eb1929e928.zip
PINK: fix item moving
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/cursor_mgr.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/pink/cursor_mgr.cpp b/engines/pink/cursor_mgr.cpp
index 99febcdc8a..a7bfbf3531 100644
--- a/engines/pink/cursor_mgr.cpp
+++ b/engines/pink/cursor_mgr.cpp
@@ -60,15 +60,11 @@ void CursorMgr::setCursor(uint index, const Common::Point point, const Common::S
if (action != _actor->getAction()) {
_actor->setAction(action);
- CelDecoder *decoder = static_cast<ActionCEL*>(action)->getDecoder();
- decoder->setX(point.x);
- decoder->setY(point.y);
- } else {
- CelDecoder *decoder = static_cast<ActionCEL*>(action)->getDecoder();
- decoder->setX(point.x);
- decoder->setY(point.y);
}
+ ActionCEL *sprite = static_cast<ActionCEL*>(action);
+ sprite->setCenter(point);
+
}
void CursorMgr::update() {