From 963b4939c576476c58f137fadbf8a1582dc73e8a Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Wed, 12 Dec 2007 19:12:54 +0000 Subject: [PATCH] If it's been so long since the last tick that we completely skip one segment of a composite path, continue onto the next one. This should fix part of the problem with trophy windows not sliding back out, but doesn't explain why they're not being removed from the overlay entirely (as the path completed functionality should still be called). git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@374 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flash/path/CompositePath.as | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/flash/path/CompositePath.as b/src/as/com/threerings/flash/path/CompositePath.as index c52d66f2..31c6c384 100644 --- a/src/as/com/threerings/flash/path/CompositePath.as +++ b/src/as/com/threerings/flash/path/CompositePath.as @@ -46,10 +46,8 @@ public class CompositePath extends Path if (_pathIdx >= 0) { remain = tickPath(_paths[_pathIdx] as Path, curStamp); } - if (remain <= 0) { - if (++_pathIdx < _paths.length) { - return startPath(_paths[_pathIdx] as Path, curStamp, remain); - } + while (remain <= 0 && ++_pathIdx < _paths.length) { + remain = startPath(_paths[_pathIdx] as Path, curStamp, remain); } return remain; }