[Scummvm-cvs-logs] scummvm master -> 159fb89cfde1eaa764dfcf136fc06d0fd4780401

wjp wjp at usecode.org
Wed Jan 4 15:48:54 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
159fb89cfd TSAGE: Explain function of sub_F8E5_calculatePoint


Commit: 159fb89cfde1eaa764dfcf136fc06d0fd4780401
    https://github.com/scummvm/scummvm/commit/159fb89cfde1eaa764dfcf136fc06d0fd4780401
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2012-01-04T06:46:58-08:00

Commit Message:
TSAGE: Explain function of sub_F8E5_calculatePoint

Changed paths:
    engines/tsage/core.cpp



diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 8f4efaf..fdd9fea 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;






More information about the Scummvm-git-logs mailing list