From 9ba7a7f1a143e20eefdc47555840d4175103986b Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Mon, 22 Oct 2012 12:26:53 +0000 Subject: NEVERHOOD: Rename stuff in Sprite: - processDelta() to updateBounds() - getRect() to getCollisionBounds() - _drawRect to _drawOffset - _rect to _collisionBounds - _deltaRect to _collisionBoundsOffset --- engines/neverhood/module1700.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/neverhood/module1700.cpp') 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 ¶m, Entity *sender) { -- cgit v1.2.3