Skip to content

Commit

Permalink
PEGASUS: Fix typos in autoDragItemIntoInventory/Room
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hoops committed Sep 30, 2011
1 parent ec67dfa commit b5af4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/pegasus/pegasus.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b5af4bf

Please sign in to comment.