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
This commit is contained in:
Mark Johnson
2007-12-12 19:12:54 +00:00
parent cb704de5fa
commit 963b4939c5
@@ -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;
}