aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/polygons.cpp
diff options
context:
space:
mode:
authorMax Horn2008-12-09 19:54:01 +0000
committerMax Horn2008-12-09 19:54:01 +0000
commitcabfbb49031b142a726ae0c966861f1f7f74f43f (patch)
tree97c151aac284716e0336d5e6dea2736cc4dd0050 /engines/tinsel/polygons.cpp
parentc96b4f692a9cfaa5e5f374813045b97c9f33fa7d (diff)
downloadscummvm-rg350-cabfbb49031b142a726ae0c966861f1f7f74f43f.tar.gz
scummvm-rg350-cabfbb49031b142a726ae0c966861f1f7f74f43f.tar.bz2
scummvm-rg350-cabfbb49031b142a726ae0c966861f1f7f74f43f.zip
Removed some dead code, clarified comments, cleanup
svn-id: r35293
Diffstat (limited to 'engines/tinsel/polygons.cpp')
-rw-r--r--engines/tinsel/polygons.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/polygons.cpp b/engines/tinsel/polygons.cpp
index 30d3565c00..f1ba989444 100644
--- a/engines/tinsel/polygons.cpp
+++ b/engines/tinsel/polygons.cpp
@@ -769,8 +769,10 @@ static HPOLYGON PathOnTheWay(HPOLYGON from, HPOLYGON to) {
}
/**
- * Indirect method of calling PathOnTheWay(), to put the burden of
- * recursion onto the main stack.
+ * Indirect method of calling PathOnTheWay().
+ * Used to be implemented using coroutines, to put the burden of
+ * recursion onto the main stack. Since our "fake" coroutines use the
+ * same stack for everything anyway, we can do without the coroutines.
*/
HPOLYGON GetPathOnTheWay(HPOLYGON hFrom, HPOLYGON hTo) {
CHECK_HP(hFrom, "Out of range polygon handle (6)");
@@ -794,7 +796,6 @@ HPOLYGON GetPathOnTheWay(HPOLYGON hFrom, HPOLYGON hTo) {
/**
* Given a node path, work out which end node is nearest the given point.
*/
-
int NearestEndNode(HPOLYGON hPath, int x, int y) {
const POLYGON *pp;
@@ -825,7 +826,6 @@ int NearestEndNode(HPOLYGON hPath, int x, int y) {
* nodes is nearest together.
* Return which node in the start path is part of the closest pair.
*/
-
int NearEndNode(HPOLYGON hSpath, HPOLYGON hDpath) {
const POLYGON *pSpath, *pDpath;