aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/module1700.cpp
diff options
context:
space:
mode:
authorjohndoe1232012-10-22 12:26:53 +0000
committerWillem Jan Palenstijn2013-05-08 20:47:33 +0200
commit9ba7a7f1a143e20eefdc47555840d4175103986b (patch)
treea1c20be6e7b9fb5dfecdc5de899b9997c452266c /engines/neverhood/module1700.cpp
parenteb054471e0814768571c550a4d268e73e1ea6b65 (diff)
downloadscummvm-rg350-9ba7a7f1a143e20eefdc47555840d4175103986b.tar.gz
scummvm-rg350-9ba7a7f1a143e20eefdc47555840d4175103986b.tar.bz2
scummvm-rg350-9ba7a7f1a143e20eefdc47555840d4175103986b.zip
NEVERHOOD: Rename stuff in Sprite:
- processDelta() to updateBounds() - getRect() to getCollisionBounds() - _drawRect to _drawOffset - _rect to _collisionBounds - _deltaRect to _collisionBoundsOffset
Diffstat (limited to 'engines/neverhood/module1700.cpp')
-rw-r--r--engines/neverhood/module1700.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/neverhood/module1700.cpp b/engines/neverhood/module1700.cpp
index 7df162c15e..f6dea96161 100644
--- a/engines/neverhood/module1700.cpp
+++ b/engines/neverhood/module1700.cpp
@@ -157,12 +157,12 @@ SsScene1705Tape::SsScene1705Tape(NeverhoodEngine *vm, Scene *parentScene, uint32
setVisible(false);
SetMessageHandler(NULL);
}
- _deltaRect = _drawRect;
- _deltaRect.x -= 4;
- _deltaRect.y -= 8;
- _deltaRect.width += 8;
- _deltaRect.height += 16;
- Sprite::processDelta();
+ _collisionBoundsOffset = _drawOffset;
+ _collisionBoundsOffset.x -= 4;
+ _collisionBoundsOffset.y -= 8;
+ _collisionBoundsOffset.width += 8;
+ _collisionBoundsOffset.height += 16;
+ Sprite::updateBounds();
}
uint32 SsScene1705Tape::handleMessage(int messageNum, const MessageParam &param, Entity *sender) {