From b5af4bfc76eca31c1c784e944471dbdb2e4b0d1a Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 30 Sep 2011 12:31:41 -0400 Subject: [PATCH] PEGASUS: Fix typos in autoDragItemIntoInventory/Room --- engines/pegasus/pegasus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index 5fda8ccad4be..5c25be2cfaed 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -1795,7 +1795,7 @@ void PegasusEngine::autoDragItemIntoRoom(Item *item, Sprite *draggingSprite) { stop.y -= bounds.height() >> 1; int dx = ABS(stop.x - start.x); - int dy = ABS(stop.y = start.y); + int dy = ABS(stop.y - start.y); TimeValue time = MAX(dx, dy); allowInput(false); @@ -1828,7 +1828,7 @@ void PegasusEngine::autoDragItemIntoInventory(Item *, Sprite *draggingSprite) { Common::Point stop((76 + 172 - r.width()) / 2, 334 - (2 * r.height() / 3)); int dx = ABS(stop.x - start.x); - int dy = ABS(stop.y = start.y); + int dy = ABS(stop.y - start.y); TimeValue time = MAX(dx, dy); allowInput(false);