aboutsummaryrefslogtreecommitdiff
path: root/scumm/boxes.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-11 22:36:21 +0000
committerMax Horn2003-09-11 22:36:21 +0000
commit538812d9fc25d572bec89bb9559221c7776aa1f4 (patch)
tree5eda0e5297e980bbb96e8fdfceef35f76436adb3 /scumm/boxes.cpp
parent32c0168087310ae945b64c0f1d61c165f19a95fe (diff)
downloadscummvm-rg350-538812d9fc25d572bec89bb9559221c7776aa1f4.tar.gz
scummvm-rg350-538812d9fc25d572bec89bb9559221c7776aa1f4.tar.bz2
scummvm-rg350-538812d9fc25d572bec89bb9559221c7776aa1f4.zip
yet another tiny cleanup.... yeah yeah, I know I am annoying
svn-id: r10182
Diffstat (limited to 'scumm/boxes.cpp')
-rw-r--r--scumm/boxes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp
index 070c251429..17f79f5257 100644
--- a/scumm/boxes.cpp
+++ b/scumm/boxes.cpp
@@ -769,7 +769,7 @@ int Scumm::getPathToDestBox(byte from, byte to) {
* Computes the next point actor a has to walk towards in a straight
* line in order to get from box1 to box3 via box2.
*/
-bool Actor::findPathTowards(byte box1nr, byte box2nr, byte box3nr, int16 &foundPathX, int16 &foundPathY) {
+bool Actor::findPathTowards(byte box1nr, byte box2nr, byte box3nr, ScummVM::Point &foundPath) {
BoxCoords box1;
BoxCoords box2;
ScummVM::Point tmp;
@@ -831,8 +831,8 @@ bool Actor::findPathTowards(byte box1nr, byte box2nr, byte box3nr, int16 &foundP
q = box1.ur.y;
if (q == pos && box2nr == box3nr)
return true;
- foundPathY = q;
- foundPathX = box1.ul.x;
+ foundPath.y = q;
+ foundPath.x = box1.ul.x;
return false;
}
}
@@ -882,8 +882,8 @@ bool Actor::findPathTowards(byte box1nr, byte box2nr, byte box3nr, int16 &foundP
q = box1.ur.x;
if (q == pos && box2nr == box3nr)
return true;
- foundPathX = q;
- foundPathY = box1.ul.y;
+ foundPath.x = q;
+ foundPath.y = box1.ul.y;
return false;
}
}