aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-01-04 15:46:58 +0100
committerWillem Jan Palenstijn2012-01-04 15:46:58 +0100
commit159fb89cfde1eaa764dfcf136fc06d0fd4780401 (patch)
treefb0d25a63d3dc39830bbfe7b09a99bdca150eda6
parenta9fa9e14cdf27c38352923235ae114004ea650dc (diff)
downloadscummvm-rg350-159fb89cfde1eaa764dfcf136fc06d0fd4780401.tar.gz
scummvm-rg350-159fb89cfde1eaa764dfcf136fc06d0fd4780401.tar.bz2
scummvm-rg350-159fb89cfde1eaa764dfcf136fc06d0fd4780401.zip
TSAGE: Explain function of sub_F8E5_calculatePoint
-rw-r--r--engines/tsage/core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 8f4efafa01..fdd9feac03 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -941,6 +941,8 @@ int PlayerMover::findDistance(const Common::Point &pt1, const Common::Point &pt2
return (int)sqrt(xx + yy);
}
+// Calculate intersection of the line segments pt1-pt2 and pt3-pt4.
+// Return true if they intersect, and return the intersection in ptOut.
bool PlayerMover::sub_F8E5_calculatePoint(const Common::Point &pt1, const Common::Point &pt2, const Common::Point &pt3,
const Common::Point &pt4, Common::Point *ptOut) {
double diffX1 = pt2.x - pt1.x;