aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-30 12:31:41 -0400
committerMatthew Hoops2011-09-30 12:35:06 -0400
commitb5af4bfc76eca31c1c784e944471dbdb2e4b0d1a (patch)
tree56efdc7c845a0e91e8f7ebe3bc4ad8b98c4832a3
parentec67dfae307736a4001bc76a64db47cc7e34f68f (diff)
downloadscummvm-rg350-b5af4bfc76eca31c1c784e944471dbdb2e4b0d1a.tar.gz
scummvm-rg350-b5af4bfc76eca31c1c784e944471dbdb2e4b0d1a.tar.bz2
scummvm-rg350-b5af4bfc76eca31c1c784e944471dbdb2e4b0d1a.zip
PEGASUS: Fix typos in autoDragItemIntoInventory/Room
-rw-r--r--engines/pegasus/pegasus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index 5fda8ccad4..5c25be2cfa 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);